// import type { MetaFunction } from "@vercel/remix" import { Links, LiveReload, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react'; import { Analytics } from '@vercel/analytics/react'; import { Globals } from './globals/GlobalStyles'; import { Main } from './components/Layout/Main'; import { useIcons } from './hooks/useIcons'; import { ChakraWrapper } from './Providers/Chakra/ChakraWrapper'; import { ThingtimeProvider } from './Providers/ThingtimeProvider'; function Document({ children, title = 'Thingtime' }: { children: React.ReactNode; title?: string }) { return ( {title} {children} {/* */} ); } export default function App() { useIcons(); return (
); } // limiter const setThingtime = (glob) => { try { glob.meta = { tmp: {}, subscribers: {}, state: {}, db: {}, stats: { db: {}, limit: 9999, maxDepth: 99, count: 0 }, things: {} }; } catch (err) { // will error on server } }; try { setThingtime(window); } catch { setThingtime(globalThis); }