import { useRouter } from 'next/router' import Script from 'next/script' import { useConfig } from 'nextra-theme-docs' /** * @type {import('nextra-theme-docs').DocsThemeConfig} */ export default { docsRepositoryBase: 'https://github.com/Brooooooklyn/Image/blob/main/website/', project: { link: 'https://github.com/Brooooooklyn/Image', }, chat: { link: 'https://discord.gg/w8DAD7auZc', }, useNextSeoProps() { const { asPath } = useRouter() if (asPath !== '/') { return { titleTemplate: '%s – Image', } } }, logo: () => { return ( <> @napi-rs/image ) }, head: () => { const { title, description } = useConfig() return ( <> {/* Favicons, meta */}