diff --git a/app/gyeol/components/Q6Step.tsx b/app/gyeol/components/Q6Step.tsx new file mode 100644 index 0000000..eacae35 --- /dev/null +++ b/app/gyeol/components/Q6Step.tsx @@ -0,0 +1,34 @@ +'use client'; + +import { useState } from 'react'; +import type { SurveyResponse } from '@/lib/survey/types'; +import QuestionLayout from './QuestionLayout'; + +interface Props { + initial: Partial; + onPrev: () => void; + onNext: (partial: Partial) => void; +} + +export default function Q6Step({ initial, onPrev, onNext }: Props) { + const [text, setText] = useState(initial.free_opinion ?? ''); + + // 빈 칸 허용 (skippable) + return ( + onNext({ free_opinion: text.trim() || undefined })} + > +