import { Html, Head, Main, NextScript, type DocumentProps } from 'next/document' interface DocProps extends DocumentProps { } export default function Document(props: DocProps) { const pageProps = props?.__NEXT_DATA__?.props?.['pageProps'] return (