Initial commit

This commit is contained in:
Quintine committed 2026-09-08 07:37:52 +10:00
commit 8c709fb52f
771 files changed
+222983

No files matched your search

@@ -0,0 +1,40 @@
'use client';
import { CardInspector } from './card-inspector';
import {
LeaderInspector,
type LeaderDisplayIdentity,
} from './leader-inspector';
import type { VisibleCard } from '@/game/card-presentation';
/** The parent supplies only faces already authorized by its private game view. */
export function BattleComponentInspection({
cards,
leader,
playerName,
}: {
cards: readonly VisibleCard[];
leader?: LeaderDisplayIdentity;
playerName: string;
}) {
if (!cards.length && !leader) return null;
return (
<details className="battle-component-inspection">
<summary>Inspect {playerName}’s plan components</summary>
<div className="visible-component-list">
{leader && (
<div>
<strong>{leader.name}</strong>
<LeaderInspector identity={leader} />
</div>
)}
{cards.map((card) => (
<div key={card.id}>
<strong>{card.name}</strong>
<CardInspector card={card} />
</div>
))}
</div>
</details>
);
}