main-site/pages/_document.tsx
Neshura 21e613891e
Added styled-components + various
Includes changes due to NextJS version bump and attempts at storing theme via cookie
2022-12-14 19:35:27 +01:00

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>
)
}