import { ChakraProvider } from '@chakra-ui/react' // import type { MetaFunction } from "@vercel/remix" import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react' import { Analytics } from '@vercel/analytics/react' import { Main } from './components/Layout/Main' function Document ({ children, title = 'Thingtime' }: { children: React.ReactNode title?: string }) { return ( {title}
{children}
) } export default function App () { return ( ) } // limiter const setThingtime = glob => { try { glob.thingtime = { tmp: {}, things: { db: {}, limit: 9999, maxDepth: 10, count: 0 } } } catch (err) { // will error on server } } try { setThingtime(window) } catch { setThingtime(globalThis) }