import { TabLayout } from "../../layouts/TabLayout" import { tabs } from "../config/tabs" import { ErrorBoundary } from "./ErrorBoundary" import { useRegional } from "../regional" /** * {{APP_NAME}} — app-level component (rendered inside RegionalProvider). * * This is where you add cross-cutting concerns that need access to the * regional registry (via useRegional), such as: * - Error boundaries ← already wired below * - Suspense boundaries * - Feature-flag-gated wrappers * - App-level analytics instrumentation * * The RegionalProvider is set up by AppContainer — use useRegional() here * and in any descendant without needing to import @regional directly. * * Layering: AppContainer → [addons] → App → ErrorBoundary → TabLayout → tabs */ export default function App() { const { config } = useRegional() // data-region enables CSS targeting without JS: [data-region="uk"] .selector { ... } // Add layout classes here if the MFE needs to fill its host container, e.g. className="h-full" return (
) }