import { ReactNode } from 'react'; import { Avatar } from './Avatar'; import { Box } from './Box'; import { Surface } from './Surface'; import { Text } from './Text'; export interface FeedItemProps { user: { name: string; avatar?: string; }; content: ReactNode; timestamp: string; actions?: ReactNode; } export const FeedItem = ({ user, content, timestamp, actions }: FeedItemProps) => { return ( {user.name} {timestamp} {typeof content === 'string' ? ( {content} ) : content} {actions && ( {actions} )} ); };