import Link from "next/link"; import { Fragment } from "react"; import { availabilityAsString } from "@calcom/lib/availability"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Availability } from "@calcom/prisma/client"; import { inferQueryOutput } from "@calcom/trpc/react"; import { Button } from "@calcom/ui"; import Dropdown, { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@calcom/ui/Dropdown"; import { Icon } from "@calcom/ui/Icon"; export function ScheduleListItem({ schedule, deleteFunction, isDeleting = false, }: { schedule: inferQueryOutput<"viewer.availability.list">["schedules"][number]; deleteFunction: ({ scheduleId }: { scheduleId: number }) => void; isDeleting: boolean; }) { const { t, i18n } = useLocale(); return (