import type { ReactNode } from 'react' import type { RouterContext } from './router-context.ts' /** The HTML shell. Boot data for the browser rides on `data-*` attributes. */ export function Document(props: { context: RouterContext title: string children: ReactNode }) { const { context } = props const assetBase = context.assetBasePath.replace(/\/$/, '') return ( {props.title} {props.children} {context.dehydratedState ? (