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 ( <>
  1. {i18nText('accountMenu.messages', params.locale)}
  2. {`Person ${params.textId}`}
🤩 It all for you! 07.09.2022
🤩 It all for you! 07.09.2022