"use client"; /** * Error boundary for the public clinician share route (`/c/`). * * The share view carries no app chrome and no session, so a render failure must * not fall through to the full-app error screen. This renders a clean, locale- * aware, stack-free message and offers a single retry. No record data, no * digest, no stack — a probe learns nothing from a failed render. */ import { useTranslations } from "@/lib/i18n/context"; import { Button } from "@/components/ui/button"; export default function ClinicianShareError({ reset, }: { error: Error & { digest?: string }; reset: () => void; }) { const { t } = useTranslations(); return (

{t("clinicianView.loadError.title")}

{t("clinicianView.loadError.description")}

); }