import * as React from 'react'; import { isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration, } from 'react-router'; import { CacheProvider } from '@emotion/react'; import Box from '@mui/material/Box'; import AppTheme from './theme'; import createEmotionCache from './createCache'; import type { Route } from './+types/root'; export const links: Route.LinksFunction = () => [ { 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=Roboto:wght@300;400;500;700&display=swap', }, ]; export function Layout({ children }: { children: React.ReactNode }) { return (
{details}
{stack && ({stack}