import { useEffect } from "react"; import { BUSINESS_CONTACT_INFO } from "../lib/contact"; import { ANALYTICS_EVENTS, fireAnalyticsEvent } from "../lib/analytics"; const STRINGS = { heading: "Link Invalid or Expired", body: "This confirmation link is invalid, has already been used, or your appointment has already passed. Please contact us if you need help.", newBooking: "Start a new booking", backToPortal: "Back to Portal", contactLabel: "Need help?", } as const; export function BookingErrorPage() { useEffect(() => { fireAnalyticsEvent(ANALYTICS_EVENTS.BOOKING_ERROR, { step: "error", flow: "public" }); }, []); return (
⚠️

{STRINGS.heading}

{STRINGS.body}

{STRINGS.newBooking} {STRINGS.backToPortal}

{STRINGS.contactLabel}

{BUSINESS_CONTACT_INFO.phone} · {BUSINESS_CONTACT_INFO.email}

); }