import React from 'react'; import { useTranslations } from 'next-intl'; import {getTranslations, unstable_setRequestLocale} from 'next-intl/server'; import { i18nText } from '../../../../i18nKeys'; import {fetchBlogPosts} from "../../../../lib/contentful/blogPosts"; import Link from "next/link"; 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 (