'use client'; import { useState } from 'react'; import { AWARENESS_FREQS } from '@/lib/survey/questions'; import type { SurveyResponse } from '@/lib/survey/types'; import QuestionLayout from './QuestionLayout'; interface Props { initial: Partial; onPrev: () => void; onNext: (partial: Partial) => void; } export default function Q2Step({ initial, onPrev, onNext }: Props) { const [value, setValue] = useState(initial.awareness_freq ?? ''); return ( onNext({ awareness_freq: value })} nextDisabled={!value} >
{AWARENESS_FREQS.map((option) => ( ))}
); }