import Link from "next/link"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc/react"; import { Badge, Label } from "@calcom/ui"; import { useTroubleshooterStore } from "../store"; import { TroubleshooterListItemHeader } from "./TroubleshooterListItemContainer"; export function EventScheduleItem() { const { t } = useLocale(); const selectedEventType = useTroubleshooterStore((state) => state.event); const { data: schedule } = trpc.viewer.availability.schedule.getScheduleByEventSlug.useQuery( { eventSlug: selectedEventType?.slug as string, }, { enabled: !!selectedEventType?.slug, } ); return (