interface ActivityItemProps {
  activity: {
    id: string;
    message: string;
    time: string;
    typeColor: string;
    formattedImpressions?: string | null;
  };
}

export default function ActivityItem({ activity }: ActivityItemProps) {
  return (
    <div className="flex items-start gap-3 py-3 border-b border-charcoal-outline/50 last:border-b-0">
      <div className={`w-2 h-2 rounded-full mt-2 ${activity.typeColor}`} />
      <div className="flex-1 min-w-0">
        <p className="text-sm text-white truncate">{activity.message}</p>
        <div className="flex items-center gap-2 mt-1">
          <span className="text-xs text-gray-500">{activity.time}</span>
          {activity.formattedImpressions && (
            <>
              <span className="text-xs text-gray-600">•</span>
              <span className="text-xs text-gray-400">{activity.formattedImpressions} views</span>
            </>
          )}
        </div>
      </div>
    </div>
  );
}