"use client"; import type { FormData } from './cost-estimator-form'; import { Button } from '@/components/ui/button'; import { Gauge } from 'lucide-react'; import React, { useState, useMemo } from 'react'; type Step4Props = { onNext: () => void; onBack: () => void; onUpdateData: (data: Partial) => void; formData: FormData; }; const designOptions = [ { id: 'custom', title: 'Custom interface with Consultative Support', hours: 60, }, { id: 'mockups', title: 'I have mockups', hours: 30, }, { id: 'existing', title: 'My existing design will do', hours: 0, }, ]; export function Step4DesignProcess({ onNext, onBack, onUpdateData, formData }: Step4Props) { const [selectedOption, setSelectedOption] = useState(formData.designProcess); const handleSelect = (optionId: 'custom' | 'mockups' | 'existing') => { setSelectedOption(optionId); onUpdateData({ designProcess: optionId }); }; const estimatedHours = useMemo(() => { const designHours = designOptions.find(opt => opt.id === selectedOption)?.hours ?? 0; const stageHours = Math.round((formData.projectStage / 100) * 50); return stageHours + designHours; }, [selectedOption, formData.projectStage]); return (

In need of design? What type of design process would you like?

{designOptions.map((option) => ( ))}
{estimatedHours} hours
); }