import type { QueryClient } from '@tanstack/react-query' import { createRootRouteWithContext, HeadContent, Outlet, Scripts, } from '@tanstack/react-router' import { WorkspaceStateProvider } from '#/features/workspace/workspace-state' import appCss from '../styles.css?url' type RouterContext = { queryClient: QueryClient } export const Route = createRootRouteWithContext()({ head: () => ({ meta: [ { charSet: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1', }, { name: 'referrer', content: 'no-referrer' }, { title: 'Twitter Lite' }, ], links: [ { rel: 'stylesheet', href: appCss }, { rel: 'icon', href: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23255f6e'/%3E%3C/svg%3E", }, ], }), shellComponent: RootDocument, component: RootContent, }) function RootContent() { return ( ) } function RootDocument({ children }: { children: React.ReactNode }) { return ( {children} ) }