'use client'; import { useRef, useEffect, useState } from 'react'; import Link from 'next/link'; import Image from 'next/image'; import { useTranslations } from 'next-intl'; import { Article } from '@/lib/blog/types'; type props = { locale: string; articles: Article[]; }; function FeaturedCover({ cover, title, category }: { cover?: string; title: string; category: string }) { const [hidden, setHidden] = useState(false); if (!cover || hidden) return null; return (
{t('noArticles')}
{featured.description}
{article.description}
{article.description}