2022-12-14 18:35:27 +00:00
|
|
|
import { getCookie, getCookies, setCookie } from 'cookies-next';
|
|
|
|
import { Html, Head, Main, NextScript, DocumentContext } from 'next/document'
|
|
|
|
import { useUpdateTheme } from './_app';
|
|
|
|
import { darkTheme } from '../components/themes';
|
|
|
|
import { GetServerSidePropsContext } from 'next';
|
2022-12-11 16:47:19 +00:00
|
|
|
|
2022-12-14 18:35:27 +00:00
|
|
|
export default function Document(ctx: DocumentContext) {
|
|
|
|
const updateTheme = useUpdateTheme();
|
|
|
|
|
2022-12-11 16:47:19 +00:00
|
|
|
return (
|
|
|
|
<Html lang='en'>
|
|
|
|
<Head />
|
|
|
|
<body>
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</Html>
|
|
|
|
)
|
|
|
|
}
|