import cx from 'classnames' import { useProductLandingContext } from 'components/context/ProductLandingContext' import { useTranslation } from 'components/hooks/useTranslation' import { ArticleList } from 'components/landing/ArticleList' export const FeaturedArticles = () => { const { featuredArticles = [], whatsNewChangelog, changelogUrl } = useProductLandingContext() const hasWhatsNewChangelog = whatsNewChangelog && whatsNewChangelog.length > 0 const { t } = useTranslation('toc') return (
{featuredArticles.map((section, i) => { return (
) })} {hasWhatsNewChangelog && (
{ return { title: link.title, date: link.date, href: link.href, } })} />
)}
) }