import { Meta, Title, Links, Main, Scripts, useAppData } from 'ice'; import type { AppData } from '@/types'; function Document() { const appData = useAppData(); return ( <Links /> <script dangerouslySetInnerHTML={{ __html: `console.log('${appData?.title}')`, }} /> </head> <body> <Main /> <Scripts /> </body> </html> ); } export default Document;