"use client" import * as React from "react" import { toast } from "sonner" import { Button } from "@/styles/radix-nova/ui/button" import { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSubmit, QuestionnaireTitle, } from "@/styles/radix-nova/ui/questionnaire" const items = [ { name: "change", required: true }, { name: "verification", required: true }, { name: "notes" }, ] as const export function QuestionnaireResume() { function handleSubmit(event: React.FormEvent) { event.preventDefault() const formData = new FormData(event.currentTarget) const answers = { change: formData.get("change"), verification: formData.getAll("verification"), notes: formData.get("notes"), } toast("Draft updated", { description: `Migration: ${answers.change ?? "None"} · Verification: ${answers.verification.join(", ") || "None"} · Notes: ${answers.notes || "None"}`, }) } return ( toast("Saved answers restored")} onSubmit={handleSubmit} > What kind of migration is this? This answer was saved during the previous session. Incremental migration Single cutover How should the migration be verified? These checks were selected during the previous session. Run migration tests Run the typecheck Perform a manual smoke test Anything else the agent should remember? This note was saved with the draft. Next Update draft ) }