hamro-nepali-patro
Version:
A modern React component library for Nepali (Bikram Sambat, BS) and Gregorian (AD) calendar date picking, conversion, and utilities. Includes a customizable datepicker, BS/AD conversion, and Nepali date functions.
12 lines (11 loc) • 445 B
TypeScript
import React from "react";
import { CalendarType } from "../types/main";
export declare const CalendarTypeProvider: React.FC<{
children: React.ReactNode;
initialCalendarType?: CalendarType;
}>;
export declare function useCalendarType(): {
calendarType: CalendarType;
setCalendarType: (calendarType: CalendarType) => void;
};
export declare function useCalendarTypeWithInitial(calendarTypeFromProps?: CalendarType): CalendarType;