'use client'; import { useState } from 'react'; import { COST_RANGES } 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 Q4Step({ initial, onPrev, onNext }: Props) { const [value, setValue] = useState(initial.cost_range ?? ''); return ( onNext({ cost_range: value })} nextDisabled={!value} >
{COST_RANGES.map((option) => ( ))}
); }