// Shared components for Hessa Falasi prototype const { useState, useEffect, useRef } = React; const WA_LINK = "https://wa.me/971526404072?text=Hi%20Hessa%20Falasi%2C%20I%27d%20like%20to%20book%20a%20styling%20appointment"; function formatAED(amount, locale) { // Use English digits regardless of locale for prices (luxury convention), // but allow Arabic-Indic via locale conversion if requested. const n = amount.toLocaleString("en-US"); return `AED ${n}`; } function PriceBlock({ p, locale }) { const t = window.HF_USE_T(locale); return ( {p.priceFrom ? {t("common.from")} : null} {formatAED(p.priceAED)} ); } function Navbar({ route, locale, setLocale, navigate, dark }) { const t = window.HF_USE_T(locale); const [openMenu, setOpenMenu] = useState(false); const [showColl, setShowColl] = useState(false); const links = [ { id: "collections", label: t("nav.collections"), href: "#/collections" }, { id: "house", label: t("nav.house"), href: "#/the-house" }, { id: "press", label: t("nav.press"), href: "#/press" }, { id: "visit", label: t("nav.visit"), href: "#/visit" } ]; const isActive = (id) => route.path.startsWith("/" + id) || (id === "collections" && route.path.startsWith("/collection")); return ( ); } function Footer({ locale }) { const t = window.HF_USE_T(locale); return ( ); } function SectionHead({ num, title, meta }) { return (