import { Check, Clock, AlertCircle } from 'lucide-react'; const ShootTimeline = ({ steps, currentStep, onStepClick }) => { const stepIcons = { confirmed: Check, in_progress: Clock, delivered: Check, booked: Clock, photos_ready: Check, }; const stepColors = { completed: 'bg-green-600 text-white', current: 'bg-blue-600 text-white ring-4 ring-blue-200', pending: 'bg-gray-300 text-gray-600', }; const getStepStatus = (stepId) => { const currentIndex = steps.findIndex(s => s.key === currentStep); const stepIndex = steps.findIndex(s => s.key === stepId); if (stepIndex < currentIndex) return 'completed'; if (stepIndex === currentIndex) return 'current'; return 'pending'; }; return (
{/* Timeline */}
{steps.map((step, idx) => { const status = getStepStatus(step.key); const Icon = step.icon; const isLast = idx === steps.length - 1; return (
{/* Step Circle */} {/* Step Label */}

{step.label}

{status === 'current' && (

In Progress

)}
{/* Connector Line */} {!isLast && (
)}
); })}
{/* Current Step Info */}

Current Step: {steps.find(s => s.key === currentStep)?.label}

); }; export default ShootTimeline;