import { ChatBubble, Heart, Star } from 'iconoir-react'; import EmptyState from '../EmptyState'; import StarRating from '../../../../breweries/components/shared/StarRating'; import type { FillerActivity } from '../../../utils/filler-user-profile'; const ICONS = { star: Star, heart: Heart, comment: ChatBubble } as const; interface ActivityTabProps { activity: FillerActivity[]; } const ActivityTab = ({ activity }: ActivityTabProps) => { if (activity.length === 0) { return ( ); } return (
{activity.map((item) => { const Icon = ICONS[item.icon]; return (

{item.verb} {item.target}

{item.rating !== undefined && (
)} {item.comment && (

“{item.comment}”

)}

{item.time}

); })}
); }; export default ActivityTab;