UNPKG

react-hijri-calendar

Version:

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

17 lines (16 loc) 661 B
import type { AvailableDateInfo, SetSelectedDateFunc } from './types'; export declare const useManageCalendar: (availableDatesInfo: AvailableDateInfo[] | null, setSelectedDate: SetSelectedDateFunc, lang: "en" | "ar", initialIsHijri: boolean, mode: "allAvailable" | "customAvailable") => { weekdayNames: string[]; weeks: Date[][]; handleDateClick: (date: Date) => void; goToPreviousMonth: () => void; goToNextMonth: () => void; toggleHijri: () => void; isHijri: boolean; currentHijriDate: import("./types").HijriDate; currentActiveViewDate: Date; currentMonthYear: { month: string; year: string; }; };