'use client' import { formatDurationCompact } from '../../utils/format' import type { BookingConfirmation } from '../../schemas/meeting-booking-schema' /** * Confirmation โ€” terminal success state after a completed booking. Renders * the booked instant in the visitor's resolved zone. Deliberately NO * follow-up CTA: the job is done, the calendar invite is the next touchpoint * (a "book another" button here tested as noise). */ export interface ConfirmationProps { confirmation: BookingConfirmation timezone: string } export function Confirmation({ confirmation, timezone }: ConfirmationProps) { const when = new Intl.DateTimeFormat(undefined, { timeZone: timezone, weekday: 'long', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit', timeZoneName: 'short', }).format(new Date(confirmation.startTimeMs)) return (

๐ŸŽ‰

You're booked

{confirmation.title}

{when} ยท {formatDurationCompact(confirmation.durationMs / 1000)}

A calendar invite is on its way to your email.

) }