typescript import React from 'react' import { CheckCircle, AlertTriangle, Info } from 'lucide-react' interface ActivityItem { id: string type: 'success' | 'warning' | 'info' title: string description: string timestamp: string asset?: string } const ActivityTimeline: React.FC = () => { const activities: ActivityItem[] = [ { id: '1', type: 'success', title: 'Database server restored', description: 'Backup restoration completed successfully', timestamp: '2 hours ago', asset: 'db-prod-01' }, { id: '2', type: 'warning', title: 'High memory usage detected', description: 'Web server memory usage above 90% threshold', timestamp: '4 hours ago', asset: 'web-staging-02' }, { id: '3', type: 'info', title: 'New asset added', description: 'Added new load balancer to inventory', timestamp: '6 hours ago' }, { id: '4', type: 'success', title: 'Network switch configured', description: 'VLAN configuration updated successfully', timestamp: '1 day ago', asset: 'switch-dc-03' } ] const getActivityIcon = (type: string) => { switch (type) { case 'success': return case 'warning': return case 'info': return default: return } } const getActivityColor = (type: string) => { switch (type) { case 'success': return 'border-accent-200' case 'warning': return 'border-alert-200' case 'info': return 'border-primary-200' default: return 'border-gray-200' } } return (
    {activities.map((activity, activityIdx) => (
  • {activityIdx !== activities.length - 1 && (
  • ))}
) } export default ActivityTimeline