"use client"; import { ShieldCheck } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; // Inline "Veil" gate. Shown above the prompt input the first time a message // would leave the clinic for an external provider — replaces the old modal so // the chat flow is never interrupted. Veil de-identifies PHI before the send. export function VeilConfirmation({ provider, onConfirm, onUseLocal, onCancel, }: { provider: string; onConfirm: () => void; onUseLocal: () => void; onCancel: () => void; }) { const { t } = useTranslation(); return (

{t("chat.veil.title")}

{t("chat.veil.body", { provider })}

); }