Skip to content

Use Selected Time Slot

Helper functions for selected time slot.

Set selected time slot

ts
const { setSelectedTimeSlot } = useSelectedTimeSlot();

setSelectedTimeSlot(timeSlot);

// or with given calendarId
const { setSelectedTimeSlot } = useSelectedTimeSlot(calendarId);

Selected time slot

ts
const { selectedTimeSlot } = useSelectedTimeSlot();

// or with given calendarId
const { selectedTimeSlot } = useSelectedTimeSlot(calendarId);