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