import React from 'react'; import { useDraggable } from '@dnd-kit/core'; import { Clock, GripVertical } from 'lucide-react'; import { clsx } from 'clsx'; export interface PendingAppointment { id: number; customerName: string; serviceName: string; durationMinutes: number; } interface PendingItemProps { appointment: PendingAppointment; } const PendingItem: React.FC = ({ appointment }) => { const { attributes, listeners, setNodeRef, isDragging } = useDraggable({ id: `pending-${appointment.id}`, data: { type: 'pending', duration: appointment.durationMinutes, title: appointment.customerName // Pass title for the new event }, }); return (

{appointment.customerName}

{appointment.serviceName}

{appointment.durationMinutes} min
); }; interface PendingSidebarProps { appointments: PendingAppointment[]; } const PendingSidebar: React.FC = ({ appointments }) => { return (

Pending Requests ({appointments.length})

{appointments.length === 0 ? (
No pending requests
) : ( appointments.map(apt => ( )) )}
); }; export default PendingSidebar;