import { ExclamationIcon } from "@heroicons/react/solid"; import { SchedulingType } from "@prisma/client"; import Link from "next/link"; import { useRouter } from "next/router"; import React from "react"; import { useSlots } from "@lib/hooks/useSlots"; import Loader from "@components/Loader"; const AvailableTimes = ({ date, eventLength, eventTypeId, minimumBookingNotice, workingHours, timeFormat, users, schedulingType, }) => { const router = useRouter(); const { rescheduleUid } = router.query; const { slots, loading, error } = useSlots({ date, eventLength, schedulingType, workingHours, users, minimumBookingNotice, }); return (
Could not load the available time slots.