import { AppShell, AuthProvider, DefaultSidebar, SidebarGroup, SidebarItem, SidebarLayout, } from "@tailor-platform/app-shell"; import { ActiveUserGuard } from "@/components/active-user-guard"; import { AuthGuard } from "@/components/auth-guard"; import { LanguageSwitcher } from "@/components/composed/language-switcher"; import { UserProfileMenu } from "@/components/composed/user-profile-menu"; import { useT } from "@/i18n/labels"; import { LocaleProvider, useAppLocale } from "@/i18n/locale"; import { authClient } from "./lib/auth-client"; import { AuthFetchContext } from "./lib/auth-fetch"; import { GraphQLProvider } from "./providers/graphql-provider"; const RouteShell = () => { // RouteShell renders inside , so useT() resolves against the active // locale. Sidebar item/group `title` props take a plain string (unlike a // page's `meta.title`, which takes the LocalizedString `labels.t(...)`). const t = useT(); return ( } > } /> ); }; const AppShellWithLocale = () => { const { locale } = useAppLocale(); return ( ); }; const App = () => { return ( ); }; export default App;