import { cookies } from 'next/headers'; import { getMessages, getTranslations } from 'next-intl/server'; import { routing } from '@kit/i18n'; import { I18nClientProvider } from '@kit/i18n/provider'; import { ErrorPageContent } from '~/components/error-page-content'; import { getRootTheme } from '~/lib/root-theme'; export const generateMetadata = async () => { const t = await getTranslations('common'); const title = t('notFound'); return { title, }; }; const NotFoundPage = async () => { const theme = await getRootTheme(); const cookieStore = await cookies(); const locale = cookieStore.get('lang')?.value || routing.defaultLocale; const messages = await getMessages({ locale }); return (
); }; export default NotFoundPage;