"use client"; import { cn, formatTime, formatCurrency } from "@/lib/utils"; interface TimeSlotProps { time: string; // HH:MM format available: boolean; price: number; clientName?: string; onClick?: () => void; } export function TimeSlot({ time, available, price, clientName, onClick, }: TimeSlotProps) { // Convert HH:MM string to a Date object for formatting const [hours, minutes] = time.split(":").map(Number); const timeDate = new Date(); timeDate.setHours(hours, minutes, 0, 0); return ( ); }