import * as React from 'react'; import { AppType, MyAppProps } from 'next/app'; import { default as Document, DocumentContext, DocumentProps, Head, Html, Main, NextScript } from 'next/document'; import createEmotionServer from '@emotion/server/create-instance'; import InitColorSchemeScript from '@mui/joy/InitColorSchemeScript'; import { Brand } from '~/common/app.config'; import { createEmotionCache } from '~/common/app.theme'; interface MyDocumentProps extends DocumentProps { emotionStyleTags: React.JSX.Element[]; } export default function MyDocument({ emotionStyleTags }: MyDocumentProps) { return ( {/* Meta (missing Title, set by the App or Page) */} {/* Favicons & PWA */} {/* Opengraph */} {Brand.URIs.CardImage && } {/* Twitter / X */} {Brand.URIs.CardImage && } {/* Author & Structured Data */}