import cx from 'classnames' import dayjs from 'dayjs' import { ActionList } from '@primer/react' import { useTranslation } from 'components/hooks/useTranslation' import { Link } from 'components/Link' import { ArrowRightIcon } from '@primer/octicons-react' import { FeaturedLink } from 'components/context/ProductLandingContext' import { useMainContext } from 'components/context/MainContext' import { TruncateLines } from 'components/ui/TruncateLines' import { BumpLink } from 'components/ui/BumpLink' export type ArticleListPropsT = { title?: string viewAllHref?: string viewAllTitleText?: string articles: Array } export const ArticleList = ({ title, viewAllHref, viewAllTitleText, articles, }: ArticleListPropsT) => { const { t } = useTranslation('product_landing') const { page } = useMainContext() return ( <> {title && (

{title}

{viewAllHref && ( {t('view')} )}
)} { return { renderItem: () => ( ) : ( ) } > {!link.hideIntro && link.intro && ( )} {link.date && ( )} ), } })} > ) }