'use client'; import { RedirectButton } from '@/components/buttons/redirect-button'; import BlockedSlotListEntry from '@/components/custom-ui/blocked-slot-list-entry'; import { Label } from '@/components/ui/label'; import { useGetApiBlockedSlots } from '@/generated/api/blocked-slots/blocked-slots'; export default function BlockedSlots() { const { data: blockedSlotsData, isLoading, error } = useGetApiBlockedSlots(); if (isLoading) return
Loading...
; if (error) return (
Error loading blocked slots
); const blockedSlots = blockedSlotsData?.data?.blocked_slots || []; return (
{/* Heading */}

My Blockers

{/* Scrollable blocked slot list */}
{blockedSlots.length > 0 ? ( blockedSlots.map((slot) => ( )) ) : (
)}
); }