import cx from 'classnames' import dayjs from 'dayjs' import { ActionList } from '@primer/components' import { Link } from 'components/Link' import { ArrowRightIcon } from '@primer/octicons-react' import { FeaturedLink } from 'components/context/ProductLandingContext' 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) => { return ( <> {title && (

{title}

{viewAllHref && ( View all )}
)} { return { renderItem: () => ( } > {!link.hideIntro && link.intro && ( )} {link.date && ( )} ), } })} > ) }