import cx from 'classnames' import dayjs from 'dayjs' import { Link } from 'components/Link' import { ArrowRightIcon } from '@primer/octicons-react' import { FeaturedLink } from 'components/context/ProductLandingContext' import { TruncateLines } from 'components/TruncateLines' type Props = { title?: string viewAllHref?: string articles: Array variant?: 'compact' | 'spaced' titleVariant?: 'large' | 'default' } export const ArticleList = ({ title, viewAllHref, articles, variant = 'compact', titleVariant = 'default', }: Props) => { return ( <> {title && (

{title}

{viewAllHref && ( View all )}
)} ) }