'use client'; import { CardInspector } from './card-inspector'; import { KwisatzInspector } from './kwisatz-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, kwisatz, }: { cards: readonly VisibleCard[]; leader?: LeaderDisplayIdentity; playerName: string; kwisatz?: boolean; }) { if (!cards.length && !leader && !kwisatz) return null; return (
Inspect {playerName}’s plan components
{kwisatz && } {leader && (
{leader.name}
)} {cards.map((card) => (
{card.name}
))}
); }