import type { LoaderFunctionArgs, LinksFunction, MetaFunction } from 'react-router'; import { Links, Meta, Outlet, Scripts, ScrollRestoration, useNavigation } from 'react-router'; import { loadContext } from '~/utils/config/headplane'; import '@fontsource-variable/inter' import { ProgressBar } from 'react-aria-components'; import { ErrorPopup } from '~/components/Error'; // TODO: Make this a default export import { Toaster } from '~/components/Toaster'; import stylesheet from '~/tailwind.css?url'; import { cn } from '~/utils/cn'; export const meta: MetaFunction = () => [ { title: 'Headplane' }, { name: 'description', content: 'A frontend for the headscale coordination server', }, ]; export const links: LinksFunction = () => [ { rel: 'stylesheet', href: stylesheet }, ]; export function Layout({ children }: { readonly children: React.ReactNode }) { return (