import { isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration, } from "react-router"; import { Toaster } from "@/components/ui/sonner"; import type { Route } from "./+types/root"; import "./app.css"; import { ErrorPage as ErrPage } from "./components/Error"; export const links: Route.LinksFunction = () => [ { href: "https://fonts.googleapis.com", rel: "preconnect" }, { crossOrigin: "anonymous", href: "https://fonts.gstatic.com", rel: "preconnect", }, { as: "style", href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap", rel: "preload", }, { href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap", media: "print", onload: "this.media='all'", rel: "stylesheet", }, ]; export function Layout({ children }: { children: React.ReactNode }) { return (