import { gameRuntime } from '../state/runtime'; import { useGameStore } from '../state/store'; import { ActionColumn } from './ActionColumn'; import { EventLog } from './EventLog'; import { ResourceBar } from './ResourceBar'; export function PlayPanel() { const showEventLog = useGameStore((s) => s.prefs.showEventLog); const columns = useGameStore((s) => s.actionColumns).filter( (col) => col.groups.length > 0 && col.groups.some((g) => g.actions.length > 0), ); const queuedActionIds = useGameStore((s) => s.queuedActionIds); const queuedActionNames = useGameStore((s) => s.queuedActionNames); return (
{columns.map((col) => ( ))}
{queuedActionNames.length > 0 ? (

Action Queue

    {queuedActionNames.map((name, index) => (
  1. {name}
  2. ))}
) : null} {showEventLog && (
)}
); }