import { Hud } from "./Hud"; import { useGameStore } from "../game/store"; import type { CompanionCommand } from "../platform/dualScreenSync"; export function DungeonCompanionHud({ send, remote = false, completion, interaction }: { send: (command: CompanionCommand) => void; remote?: boolean; completion?: boolean; interaction?: { prompt: string; name: string; label: string } | null; }) { const bossTest = useGameStore((state) => state.bossTest); return
send({ name: "finishDungeon" }) : undefined} onInteract={remote ? () => send({ name: "interactDungeonObject" }) : undefined} onResurrect={remote ? (checkpointId) => send({ name: "resurrectParty", checkpointId }) : undefined} onLayoutChange={remote ? (id, update) => send({ name: "editHudElement", id, update }) : undefined} />
; }