import { Box } from './Box'; import { Link } from './Link'; import { Text } from './Text'; interface ActivityItemProps { headline: string; body?: string; formattedTime: string; ctaHref?: string; ctaLabel?: string; typeColor?: string; } export function ActivityItem({ headline, body, formattedTime, ctaHref, ctaLabel, typeColor, }: ActivityItemProps) { return ( {typeColor && ( )} {headline} {body && ( {body} )} {formattedTime} {ctaHref && ctaLabel && ( {ctaLabel} )} ); }