Open History to see the last commit
1import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'
2import appCss from '../styles.css?url'
3
4export const Route = createRootRoute({
5 head: () => ({
6 meta: [
7 { charSet: 'utf-8' },
8 {
9 name: 'viewport',
10 content: 'width=device-width, initial-scale=1',
11 },
12 { title: 'Trip desk · TanStack AI' },
13 ],
14 links: [
15 { rel: 'stylesheet', href: appCss },
16 {
17 rel: 'icon',
18 type: 'image/svg+xml',
19 href: 'https://tanstack.com/favicon-light.svg',
20 media: '(prefers-color-scheme: light)',
21 },
22 {
23 rel: 'icon',
24 type: 'image/svg+xml',
25 href: 'https://tanstack.com/favicon-dark.svg',
26 media: '(prefers-color-scheme: dark)',
27 },
28 ],
29 }),
30 shellComponent: RootDocument,
31})
32
33function RootDocument({ children }: { children: React.ReactNode }) {
34 return (
35 <html className="dark" lang="en">
36 <head>
37 <HeadContent />
38 </head>
39 <body className="min-h-screen">
40 {children}
41 <Scripts />
42 </body>
43 </html>
44 )
45}