'use client'; import { useTranslations } from 'next-intl'; import { motion, AnimatePresence } from 'framer-motion'; import { cn } from '@/lib/utils'; import Button from '@/components/ui/Button'; import Chip from '@/components/ui/Chip'; import ProgressBar from './ProgressBar'; import type { StepProps } from './WizardContainer'; // ─── Data ───────────────────────────────────────────────────────────────────── const INDUSTRY_IDS = ['maritime', 'hospitality', 'technology', 'realestate', 'finance', 'ngo', 'other'] as const; const TIMELINE_IDS = ['asap', '1-3months', '3-6months', 'exploring'] as const; // ─── Component ──────────────────────────────────────────────────────────────── export default function StepDetails({ formData, setFormData, onNext, onBack }: StepProps) { const t = useTranslations('configurator'); const selectIndustry = (id: string) => { setFormData((prev) => ({ ...prev, industry: prev.industry === id ? null : id, })); }; const selectTimeline = (id: string) => { setFormData((prev) => ({ ...prev, timeline: prev.timeline === id ? null : id, })); }; return (

{t('step2.title')}

{t('step2.subtitle')}

{/* Industry */}
{INDUSTRY_IDS.map((id, index) => ( selectIndustry(id)} > {t(`industries.${id}`)} ))}
{/* Scope / Goals */}