1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-22 14:36:35 +01:00
Whalebird-desktop-client-ma.../renderer/pages/_document.tsx
2024-03-22 00:59:53 +09:00

17 lines
394 B
TypeScript

import Document, { Html, Head, Main, NextScript } from 'next/document'
export default class MyDocument extends Document {
render() {
const pageProps = this.props?.__NEXT_DATA__?.props?.pageProps
return (
<Html>
<Head />
<body className={pageProps.isDark ? 'dark' : 'light'}>
<Main />
<NextScript />
</body>
</Html>
)
}
}