import React from 'react'; import { unstable_setRequestLocale } from 'next-intl/server'; import { Link } from '../../../../../../navigation'; import { i18nText } from '../../../../../../i18nKeys'; export function generateStaticParams({ params: { locale }, }: { params: { locale: string } }) { const result: { locale: string, textId: string }[] = []; const chats = [{ textId: '1' }, { textId: '2' }, { textId: '3' }]; chats.forEach(({ textId }) => { result.push({ locale, textId }); }); return result; } export default function Message({ params }: { params: { locale: string, textId: string } }) { unstable_setRequestLocale(params.locale); return ( <>