/* global React, ReactDOM */ // ============================================ // A_LIZ HAIRDRESSER — App root // ============================================ const { LangProvider: LP, RouteProvider: RP, useRoute: useRouteApp, Nav: NavApp, Footer: FooterApp, WhatsAppFab: WaApp, Announcement: AnnApp, LoadingCurtain: LCApp, OfferPopup: OPApp, CookieConsent: CookieBannerApp, CustomCursor: CursorApp, ScrollProgress: ScrollBarApp } = window; const { HomePage: HP, ServicesPage: SP, GalleryPage: GP, AboutPage: AP, ContactPage: CP, PrivacyPage: PP, TermsPage: TP, CookiePage: KP, AppointmentPage: AP2 } = window; function PageSwitch() { const { route } = useRouteApp(); if (route === "services") return ; if (route === "gallery") return ; if (route === "about") return ; if (route === "contact") return ; if (route === "appointment") return ; if (route === "privacy") return ; if (route === "terms") return ; if (route === "cookies") return ; return ; } // Inner wrapper — reads route inside RouteProvider context function AppInner() { const { route } = useRouteApp(); return ( <>
); } function App() { return ( ); } const root = ReactDOM.createRoot(document.getElementById("app")); root.render();