import CategoryStep from "./CategoryStep"; import type { Category } from "@/lib/categories"; import StepIndicator from "./StepIndicator"; type WizardProps = { step: number; categories: Category[]; answers: Record; isComplete: boolean; onAnswerChange: (id: string, value: string) => void; onNext: () => void; onPrev: () => void; onReset: () => void; }; export default function Wizard({ step, categories, answers, isComplete, onAnswerChange, onNext, onPrev, onReset }: WizardProps) { const currentCategory = categories[step]; return (
{isComplete ? (

Resumo

Todas as respostas estão prontas

Revise abaixo e, se necessário, volte para ajustar antes de gerar o prompt final.

{categories.map((category) => (

{category.title}

{answers[category.id] || "(Sem resposta)"}

))}
) : currentCategory ? (
onAnswerChange(currentCategory.id, value)} />

Dica rápida

Pense no impacto direto

Cada etapa deve informar uma decisão de comunicação. Se não influenciar o resultado final, simplifique.

Etapa atual

{currentCategory.title}

{currentCategory.tip}

) : null} {!isComplete ? (
) : null}
); }