import React from 'react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Wrench, Calendar, AlertTriangle, CheckCircle } from 'lucide-react'; const mockMaintenance = [ { id: 1, vehicle: 'V004 - Ford Explorer', type: 'Oil Change', status: 'scheduled', date: '2025-10-12', priority: 'medium' }, { id: 2, vehicle: 'V007 - Tesla Model S', type: 'Tire Rotation', status: 'overdue', date: '2025-10-08', priority: 'high' }, { id: 3, vehicle: 'V012 - Honda CR-V', type: 'Brake Inspection', status: 'scheduled', date: '2025-10-15', priority: 'high' }, { id: 4, vehicle: 'V003 - Tesla Model 3', type: 'Battery Check', status: 'completed', date: '2025-10-09', priority: 'low' } ]; const MaintenanceSchedule = () => { const getStatusColor = (status: string) => { switch (status) { case 'completed': return 'bg-green-100 text-green-800'; case 'scheduled': return 'bg-blue-100 text-blue-800'; case 'overdue': return 'bg-red-100 text-red-800'; default: return 'bg-gray-100 text-gray-800'; } }; const getPriorityColor = (priority: string) => { switch (priority) { case 'high': return 'bg-red-100 text-red-800'; case 'medium': return 'bg-yellow-100 text-yellow-800'; default: return 'bg-blue-100 text-blue-800'; } }; return (
Scheduled
12

This month

Overdue
3

Requires attention

Completed
45

This month

Total Cost
$2,340

This month

Maintenance Schedule Upcoming and recent maintenance activities
{mockMaintenance.map((item) => (

{item.type}

{item.status} {item.priority}
{item.vehicle} {item.date}
))}
); }; export default MaintenanceSchedule;