19 lines
463 B
TypeScript
19 lines
463 B
TypeScript
import {Html, Main, NextScript, DocumentProps, Head} from 'next/document';
|
|
import {FC} from "react";
|
|
import Dict = NodeJS.Dict;
|
|
|
|
const MyDocument: FC<DocumentProps> = ({ __NEXT_DATA__ }) => {
|
|
const pageProps: Dict<unknown>|undefined = __NEXT_DATA__?.props?.pageProps;
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<body className={pageProps?.bodyClassName as string}>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
|
|
export default MyDocument
|