21e613891e
Includes changes due to NextJS version bump and attempts at storing theme via cookie
19 lines
516 B
TypeScript
19 lines
516 B
TypeScript
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';
|
|
|
|
export default function Document(ctx: DocumentContext) {
|
|
const updateTheme = useUpdateTheme();
|
|
|
|
return (
|
|
<Html lang='en'>
|
|
<Head />
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
} |