import type { ReactNode } from 'react' import type { CombatLogEntry } from '../game' import { RematchControls, ResultLogToggle } from './RewardPanels' type ResultAction = { label: string onClick: () => void className?: string disabled?: boolean } type ResultRematch = { visible: boolean requested: boolean message: string onRematch: () => void } export function ResultScreen({ eyebrow, title, children, log, showLog, onToggleLog, rematch, actions, }: { eyebrow: string title: string children?: ReactNode log?: CombatLogEntry[] showLog?: boolean onToggleLog?: () => void rematch?: ResultRematch actions?: ResultAction[] }) { return (
{eyebrow}