mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
14 lines
574 B
TypeScript
14 lines
574 B
TypeScript
import { useTroubleshooterStore } from "@calcom/features/troubleshooter/store";
|
|
import { EventScheduleItemComponent } from "@calcom/features/troubleshooter/components/EventScheduleItemComponent";
|
|
import { useScheduleByEventSlug } from "../../hooks/useScheduleByEventSlug";
|
|
|
|
export function EventScheduleItem(): JSX.Element {
|
|
const selectedEventType = useTroubleshooterStore((state) => state.event);
|
|
|
|
const { data: schedule } = useScheduleByEventSlug({
|
|
eventSlug: selectedEventType?.slug,
|
|
});
|
|
|
|
return <EventScheduleItemComponent schedule={schedule ?? null} />;
|
|
}
|