import React from 'react'; import { DocsThemeConfig, useConfig } from 'nextra-theme-docs'; import { useRouter } from 'next/router'; import Search from '@components/Search'; function useHead() { const { asPath } = useRouter(); const { frontMatter, title } = useConfig(); const url = `https://overextended.dev${asPath}`; const description = frontMatter.description || "Documentation for Overextended's resources for FiveM/RedM"; return ( <> > ); } function useNextSeoProps() { const { asPath } = useRouter(); const arr = asPath.replace(/[-_]/g, ' ').split('/'); const category = (arr[1][0] !== '#' && arr[1]) || 'Overextended'; const rawTitle = arr[arr.length - 1]; const title = /[a-z]/.test(rawTitle) && /[A-Z]/.test(rawTitle) ? rawTitle : '%s'; return { titleTemplate: `${title} - ${ rawTitle === category ? 'Documentation' : category.replace(/(^\w|\s\w)/g, (m) => m.toUpperCase()) }`, }; } const config: DocsThemeConfig = { logo: (