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 { Icon } from "@calcom/ui"; import { Button, Badge } from "@calcom/ui/v2"; import Dropdown, { DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@calcom/ui/v2/core/Dropdown"; 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 (