amis-rpc-design/node_modules/rc-picker/lib/panels/DatePanel/DateHeader.d.ts

19 lines
612 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { Locale } from '../../interface';
import type { GenerateConfig } from '../../generate';
export type DateHeaderProps<DateType> = {
prefixCls: string;
viewDate: DateType;
value?: DateType | null;
locale: Locale;
generateConfig: GenerateConfig<DateType>;
onPrevYear: () => void;
onNextYear: () => void;
onPrevMonth: () => void;
onNextMonth: () => void;
onYearClick: () => void;
onMonthClick: () => void;
};
declare function DateHeader<DateType>(props: DateHeaderProps<DateType>): React.JSX.Element;
export default DateHeader;