persian-fullcalendar
Version:
React component that helps you to makes simple Farsi/Jalali/Shamsi date picker. It also has range date picker you can select multiple days in multiple months.
13 lines (12 loc) • 481 B
TypeScript
import type { Dispatch, RefObject, SetStateAction } from 'react';
import type { DaysInMonth } from '../utils/month/month.types';
interface UseSliderTypes {
daysElementRefs: RefObject<HTMLDivElement[]>;
days: DaysInMonth[];
setDays: Dispatch<SetStateAction<DaysInMonth[]>>;
}
export declare const useSlideCalendar: ({ daysElementRefs, days, setDays }: UseSliderTypes) => {
slideToTheNextMonth: () => void;
slideToPrevMonth: () => void;
};
export {};