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