'use client';

import { ActivityItem } from '@/ui/ActivityItem';
import React, { ReactNode } from 'react';

interface ActivityFeedItemProps {
  icon: ReactNode;
  content: ReactNode;
  timestamp: string;
}

export function ActivityFeedItem({
  icon,
  content,
  timestamp,
}: ActivityFeedItemProps) {
  return (
    <ActivityItem
      title=""
      description={typeof content === 'string' ? content : undefined}
      timestamp={timestamp}
      icon={icon}
    >
      {typeof content !== 'string' && content}
    </ActivityItem>
  );
}
