import React from 'react'; // import { useTranslations } from 'next-intl'; import Link from 'next/link'; import { getTranslations, unstable_setRequestLocale } from 'next-intl/server'; import { i18nText } from '../../../../i18nKeys'; import { fetchBlogPosts } from '../../../../lib/contentful/blogPosts'; export default async function News({params: {locale}}: { params: { locale: string } }) { unstable_setRequestLocale(locale); const t = await getTranslations('Main'); const { data, total } = await fetchBlogPosts({preview: false, sticky: true}) return (