31 lines
573 B
TypeScript
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
|