import { useTranslation } from 'react-i18next'
import type { SpiritEntity } from '../lib/types'
export type EntityCardProps = {
entity: SpiritEntity | null
isNew: boolean
/** Whether the collapsible dossier body is expanded. */
open: boolean
/** Toggle the collapsed/expanded state (ignored while there's no entity). */
onToggleOpen: () => void
}
/**
* Occult dossier of the currently-summoned spirit, wax-seal vibe.
* Styling (`.spirit-dossier` / `.dossier-*` / `.rarity-badge` / …) lives in
* SeancePage.css alongside the rest of the side column.
*/
export function EntityCard({ entity, isNew, open, onToggleOpen }: EntityCardProps) {
const { t } = useTranslation()
if (!entity) {
return (