UNPKG

react-hijri-calendar

Version:

A pluggable React calendar component supporting Hijri and Gregorian dates, theming, and custom rendering.

24 lines (23 loc) 663 B
interface RequiredAvailableDateInfo { date: string; isAvailable: boolean; } export type AvailableDateInfo = RequiredAvailableDateInfo & Record<string, any>; export interface HijriDate { day: number; month: number; year: number; } export type SetSelectedDateFunc = (date: Date) => void; export interface RenderDayCellParams { date: Date; isSelected: boolean; isAvailable: boolean; isCurrentDay: boolean; isCurrentMonth: boolean; hijriDate: HijriDate; availableCellData?: AvailableDateInfo; } export type CalendarMode = 'allAvailable' | 'customAvailable'; export type CalendarType = 'hijri' | 'gregorian'; export {};