import { isRouteErrorResponse, Link, Links, Meta, Outlet, Scripts, ScrollRestoration, } from "react-router"; import type { Route } from "./+types/root"; import "@fontsource-variable/roboto"; import "./root.css"; //#region Maplibre setup import "maplibre-theme/icons.default.css"; import "maplibre-theme/modern.css"; import { Protocol } from "pmtiles"; import maplibregl, { type LngLatLike } from "maplibre-gl"; import { AppProvider } from "./AppContext"; const pmtiles = new Protocol(); maplibregl.addProtocol("pmtiles", pmtiles.tile); //#endregion import "./i18n"; export const links: Route.LinksFunction = () => []; export function HydrateFallback() { return "Cargando..."; } export function Layout({ children }: { children: React.ReactNode }) { return ( Busurbano {/* Set theme early to avoid flash of wrong theme (especially skeletons) */}