UNPKG

react-hijri-calendar

Version:

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

21 lines (20 loc) 747 B
import React from 'react'; import { getHijriDate } from '../utils'; import type { AvailableDateInfo, RenderDayCellParams } from '../types'; import type { CSSProperties, JSX } from 'react'; interface CalendarTableProps { weeks: Date[][]; selectedDate: Date | null; availableDatesInfo?: AvailableDateInfo[]; mode: 'allAvailable' | 'customAvailable'; isHijri: boolean; currentHijriDate: ReturnType<typeof getHijriDate>; currentActiveViewDate: Date; dayCellClassName?: string; dayCellStyle?: CSSProperties; onDateClick: (date: Date) => void; renderDayCell?: (params: RenderDayCellParams) => JSX.Element; weekDays: string[]; } export declare const CalendarTable: React.FC<CalendarTableProps>; export {};