'use client'; import { useTranslations } from 'next-intl'; import { motion } from 'framer-motion'; import { Calendar, RotateCcw } from 'lucide-react'; import AnimatedCheckmark from '@/components/icons/AnimatedCheckmark'; import Button from '@/components/ui/Button'; import CalButton from '@/components/ui/CalButton'; import type { WizardFormData } from './WizardContainer'; // ─── Brief Renderer ────────────────────────────────────────────────────────── function renderBrief(brief: string) { const blocks = brief.split('\n\n').filter(Boolean); return blocks.map((block, blockIdx) => { const lines = block.split('\n').filter(Boolean); const isSectionHeading = lines.length === 1 && lines[0].startsWith('**') && lines[0].endsWith('**'); if (isSectionHeading) { const text = lines[0].replace(/\*\*/g, ''); if (blockIdx === 0) { return (
{text}
); } return ({text}
); } if (lines.length === 1 && lines[0] === '---') { return0 ? 'mt-1' : ''}> {parts.map((part, pIdx) => part.startsWith('**') && part.endsWith('**') ? ( {part.slice(2, -2)} ) : ( {part} ), )}
); })}{t('complete.subtitle', { email: displayEmail })}
{t('complete.briefPreview')}
{t('complete.nextStep')}
{t('complete.bookSubtitle')}
{t('complete.reachDirectly')}{' '} hello@letsbe.biz
{onReset && ( )}