tldraw/pages/_document.tsx
2021-05-09 13:03:39 +01:00

31 lines
573 B
TypeScript

import Document, {
DocumentContext,
Html,
Head,
Main,
NextScript,
} from "next/document"
import { dark } from "styles"
class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx)
return { ...initialProps }
}
render() {
return (
<Html>
<Head>
<title>ScribbleScript</title>
</Head>
<body className={dark}>
<Main />
<NextScript />
</body>
</Html>
)
}
}
export default MyDocument