import type { MetaFunction } from "react-router"; import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; import { LiveDataProvider } from "~/utils/live-data"; import ToastProvider from "~/utils/toast-provider"; import type { Route } from "./+types/root"; import { ErrorBanner } from "./components/error-banner"; import "@fontsource-variable/inter/wght.css"; import "./tailwind.css"; export const meta: MetaFunction = () => [ { title: "Headplane" }, { name: "description", content: "A frontend for the headscale coordination server", }, ]; export function Layout({ children }: { readonly children: React.ReactNode }) { // LiveDataProvider is wrapped at the top level since dialogs and things // that control its state are usually open in portal containers which // are not a part of the normal React tree. return ( {children} ); } export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) { return (
); } export default function App() { return ; }