@ucloud-pccl/react-components
Version:
UCloud pccl react components
21 lines (20 loc) • 684 B
TypeScript
import React, { ReactNode } from 'react';
import { TDate } from '@z-r/calendar/types/interface';
import LOCALE from './locale/zh_CN';
export interface TShortcut {
handle: () => TDate;
locale?: keyof typeof LOCALE;
label?: ReactNode;
}
type Mode = 'date' | 'month';
interface FooterProps {
mode: Mode;
confirmAble: boolean;
onConfirm: () => void;
shortcuts?: TShortcut[] | null;
onShortcut: (d: TDate) => void;
tip?: ReactNode;
locale?: typeof LOCALE;
}
declare const _default: React.MemoExoticComponent<({ mode, confirmAble, onConfirm, shortcuts, onShortcut, tip, locale: _locale }: FooterProps) => React.JSX.Element>;
export default _default;