/* Hortman Clinics — modal flows */ const { useState: useS, useEffect: useE } = React; const HCIcon = window.HC.Icon; /* ---------- shared modal wrapper ---------- */ const ModalShell = ({ onClose, children, small, className = "" }) => { useE(() => { const k = (e) => e.key === "Escape" && onClose(); document.addEventListener("keydown", k); document.body.style.overflow = "hidden"; return () => { document.removeEventListener("keydown", k); document.body.style.overflow = ""; }; }, [onClose]); return (
e.stopPropagation()}> {children}
); }; /* ---------- Doctor profile modal ---------- */ const DoctorModal = ({ doctor, onClose, onBook }) => { if (!doctor) return null; return (
{doctor.name}
{doctor.specialty}

{doctor.name}

{doctor.verified ? "Credentials verified" : "Pending verification"}

{doctor.bio}

    {doctor.credentials.map(([k, v], i) => (
  • {k} {v}
  • ))}
  • Location {doctor.location}
  • Languages {doctor.languages}
Common consultations
{doctor.treatments.map((t) => ( {t} ))}
Ask a question
); }; /* ---------- Consent (Before/After) request modal ---------- */ const ConsentModal = ({ onClose }) => { const [sent, setSent] = useS(false); const [area, setArea] = useS(""); if (sent) { return (

Request received

A patient coordinator will reach out within one working day with consented case examples — only for cases that match your concern, and only with explicit patient consent on file.

); } return (
Consent-gated request

Request consented case examples

Tell us which treatment area you are considering. We will share relevant before-and-after imagery only where the specific patient has given written consent and the imagery passes our DHA review.

Compliance: In line with UAE DHA advertising rules, we do not display patient imagery without explicit patient consent. Shared examples remain confidential and are returned at the end of your enquiry.
{ e.preventDefault(); setSent(true); }}>