react-elasticsearch-calendar
Version:
booking calendar on React with Elasticsearch
36 lines (35 loc) • 892 B
TypeScript
/// <reference types="react" />
import { DateSelectArg, EventInput } from "@fullcalendar/core";
import { DateClickArg } from "@fullcalendar/interaction";
export interface Room {
uuid: string;
name: string;
duration: string;
}
export interface AllEvents {
[roomUuid: string]: EventInput[];
}
export interface BookingCalendarProps {
rooms: Room[];
allEvents?: AllEvents;
}
export interface MonthlyCalendarProps {
onDateClick?: (arg: DateClickArg) => void;
}
export interface RoomCalendarProps {
roomUuid: string;
roomName: string;
dateStr: string;
events?: EventInput[];
onTimeSelect?: (args: DateSelectArg) => void;
}
export interface AccordionProps {
title: string;
children: React.ReactNode;
initOpen?: boolean;
}
export interface SliderProps {
children: React.ReactNode[];
showCount?: number;
initialIndex?: number;
}