import { ArrowLeft, Edit3, Sparkles } from 'lucide-react'; import type { Match3DAgentSessionSnapshot } from '../../../packages/shared/src/contracts/match3dAgent'; type Match3DDraftReadyViewProps = { session: Match3DAgentSessionSnapshot; isBusy?: boolean; error?: string | null; onBack: () => void; }; export function Match3DDraftReadyView({ session, isBusy = false, error = null, onBack, }: Match3DDraftReadyViewProps) { const draft = session.draft; const title = draft?.gameName || '抓大鹅草稿'; return (
{title}
{draft?.summaryText ?? session.lastAssistantReply ?? ''}
{draft ? (
题材
{draft.themeText}
物品
{draft.totalItemCount ?? draft.clearCount * 3} 件
难度
{draft.difficulty}
) : null} {error ? (
{error}
) : null}
); } export default Match3DDraftReadyView;