diff --git a/cshare-app/src/components/ActivityFeed.jsx b/cshare-app/src/components/ActivityFeed.jsx new file mode 100644 index 0000000..0da5895 --- /dev/null +++ b/cshare-app/src/components/ActivityFeed.jsx @@ -0,0 +1,71 @@ +import { EyeIcon, DownloadIcon, UploadIcon } from './Icons'; +import { formatActivityTime } from '../data/mockData'; + +const EVENT_CONFIG = { + view: { icon: EyeIcon, color: 'var(--accent)', label: 'Viewed', bg: 'var(--accent-muted)' }, + download: { icon: DownloadIcon, color: 'var(--success)', label: 'Downloaded', bg: 'var(--success-muted)' }, + upload: { icon: UploadIcon, color: '#F5A623', label: 'Uploaded', bg: 'rgba(245, 166, 35, 0.12)' }, +}; + +export function ActivityFeed({ activities }) { + if (!activities || activities.length === 0) return null; + + return ( +