@orca-fe/pocket
Version:
UI components by orca-team
18 lines (17 loc) • 591 B
TypeScript
import type { Moment } from 'moment';
import moment from 'moment';
import React from 'react';
export type CustomDateRenderType = (date: Moment, params: {
lunar: string;
}) => React.ReactElement | undefined;
export type VirtualCalendarContextType = {
currentMonth: string;
today: string;
startDate: moment.Moment;
checked?: moment.Moment;
rowHeight: number;
onDateClick?: (date: Moment) => void;
customDateRender?: CustomDateRenderType;
};
declare const VirtualCalendarContext: React.Context<VirtualCalendarContextType>;
export default VirtualCalendarContext;