import Head from 'next/head' import { SidebarNav } from 'components/SidebarNav' import { Header } from 'components/Header' import { SmallFooter } from 'components/SmallFooter' import { ScrollButton } from 'components/ScrollButton' import { SupportSection } from 'components/SupportSection' import { DeprecationBanner } from 'components/DeprecationBanner' import { useMainContext } from 'components/context/MainContext' import { useTranslation } from './hooks/useTranslation' import { useVersion } from './hooks/useVersion' type Props = { children?: React.ReactNode } export const DefaultLayout = (props: Props) => { const { builtAssets, expose, page, error } = useMainContext() const { currentVersion } = useVersion() const { t } = useTranslation('errors') return (
{error === '404' ? ( {t('oops')} ) : currentVersion !== 'homepage' && page.fullTitle ? ( {page.fullTitle} ) : null}