47 lines
822 B
TypeScript
Raw Normal View History

2023-06-27 00:28:54 +00:00
import { ChakraProvider } from '@chakra-ui/react'
// import type { MetaFunction } from "@vercel/remix"
2023-06-23 03:59:14 +00:00
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
2023-06-27 00:28:54 +00:00
ScrollRestoration
} from '@remix-run/react'
import { Analytics } from '@vercel/analytics/react'
2023-06-23 03:59:14 +00:00
2023-06-27 00:28:54 +00:00
function Document ({
children,
2023-06-27 00:50:29 +00:00
title = 'Thingtime | For Everything'
}: {
children: React.ReactNode
title?: string
}) {
2023-06-23 03:59:14 +00:00
return (
2023-06-27 00:28:54 +00:00
<html lang='en'>
2023-06-23 03:59:14 +00:00
<head>
<Meta />
<title>{title}</title>
2023-06-23 03:59:14 +00:00
<Links />
</head>
<body>
{children}
2023-06-23 03:59:14 +00:00
<ScrollRestoration />
<Scripts />
<LiveReload />
2023-06-23 03:59:14 +00:00
<Analytics />
</body>
</html>
)
}
2023-06-27 00:28:54 +00:00
export default function App () {
return (
<Document>
<ChakraProvider>
<Outlet />
</ChakraProvider>
</Document>
)
2023-06-23 03:59:14 +00:00
}