/** * @deprecated modifications to this file should be v2 only * Use `/packages/features/schedules/components/ScheduleListItem.tsx` instead */ 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"; /** * @deprecated modifications to this file should be v2 only * Use `/packages/features/schedules/components/ScheduleListItem.tsx` instead */ 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 (
  • {schedule.name} {schedule.isDefault && ( {t("default")} )}

    {schedule.availability.map((availability: Availability) => ( {availabilityAsString(availability, { locale: i18n.language })}
    ))}

  • ); }