import React, { ReactNode } from 'react'; import { Box } from './primitives/Box'; import { Text } from './Text'; import { Image } from './Image'; interface FeedItemProps { actorName?: string; actorAvatarUrl?: string; typeLabel: string; headline: string; body?: string; timeAgo: string; cta?: ReactNode; } export function FeedItem({ actorName, actorAvatarUrl, typeLabel, headline, body, timeAgo, cta, }: FeedItemProps) { return ( {actorAvatarUrl ? ( {actorName ) : ( {typeLabel} )} {headline} {body && ( {body} )} {timeAgo} {cta && ( {cta} )} ); }