import React, { ReactNode } from 'react'; import Image from 'next/image'; import { Box } from './Box'; import { Stack } from './Stack'; import { Text } from './Text'; import { Card } from './Card'; 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} )} ); }