import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { Outlet, Link, createRootRouteWithContext, useRouter, HeadContent, Scripts, } from "@tanstack/react-router"; import appCss from "../styles.css?url"; import { SiteHeader } from "@/components/site-header"; import { SiteFooter } from "@/components/site-footer"; function NotFoundComponent() { return (

404

Page not found

The page you're looking for doesn't exist or has been moved.

Go home
); } function ErrorComponent({ error, reset }: { error: Error; reset: () => void }) { console.error(error); const router = useRouter(); return (

This page didn't load

Something went wrong on our end. You can try refreshing or head back home.

Go home
); } export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({ head: () => ({ meta: [ { charSet: "utf-8" }, { name: "viewport", content: "width=device-width, initial-scale=1" }, { title: "AceHazmat — Electronic CBRNe & HAZMAT Training Simulation" }, { name: "description", content: "Risk-free electronic simulation systems for HAZMAT and CBRNe first responder training. UWB precision, IoT detectors, scalable drills." }, { name: "author", content: "AceHazmat" }, { property: "og:title", content: "AceHazmat — Electronic CBRNe & HAZMAT Training Simulation" }, { property: "og:description", content: "Risk-free electronic simulation systems for HAZMAT and CBRNe first responder training. UWB precision, IoT detectors, scalable drills." }, { property: "og:type", content: "website" }, { name: "twitter:card", content: "summary" }, { name: "twitter:site", content: "@AceHazmat" }, { name: "twitter:title", content: "AceHazmat — Electronic CBRNe & HAZMAT Training Simulation" }, { name: "twitter:description", content: "Risk-free electronic simulation systems for HAZMAT and CBRNe first responder training. UWB precision, IoT detectors, scalable drills." }, { property: "og:image", content: "https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/ea9d81b1-9dc7-45f2-8cea-134f4cd74926" }, { name: "twitter:image", content: "https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/ea9d81b1-9dc7-45f2-8cea-134f4cd74926" }, ], links: [ { rel: "stylesheet", href: appCss, }, { rel: "preconnect", href: "https://fonts.googleapis.com" }, { rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" }, { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap", }, ], }), shellComponent: RootShell, component: RootComponent, notFoundComponent: NotFoundComponent, errorComponent: ErrorComponent, }); function RootShell({ children }: { children: React.ReactNode }) { return ( {children} ); } function RootComponent() { const { queryClient } = Route.useRouteContext(); return (
); }