'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 })} >