UNPKG

@unified-api/react-calendar-scheduler

Version:
36 lines (33 loc) 834 B
import React from 'react'; interface CalendarBusy { start_at: string; end_at: string; } interface BookingForm { name: string; email: string; date: string; time: string; duration: number; timezone: string; notes?: string; } interface CalendarSchedulerProps { busy?: CalendarBusy[]; available?: CalendarBusy[]; connection_id?: string; api_token?: string; duration?: number; months?: string[]; days?: string[]; type?: string; bookFn?: (form: BookingForm) => void; defaultTimezone?: string; work_days?: number[]; dc?: 'us' | 'eu' | 'au'; start_hour?: number; end_hour?: number; } declare const CalendarScheduler: React.FC<CalendarSchedulerProps>; export { CalendarScheduler }; export type { BookingForm, CalendarBusy, CalendarSchedulerProps };