UNPKG

582 BTypeScriptView Raw
1import * as React from 'react';
2import { PickerView } from '../../Picker/Picker';
3import { MaterialUiPickersDate } from '../../typings/date';
4export declare function useViews(views: PickerView[], openTo: PickerView, onChange: (date: MaterialUiPickersDate, isFinish?: boolean) => void): {
5 handleChangeAndOpenNext: (date: MaterialUiPickersDate, isFinish?: boolean | undefined) => void;
6 openView: "date" | "year" | "month" | "hours" | "minutes" | "seconds";
7 setOpenView: React.Dispatch<React.SetStateAction<"date" | "year" | "month" | "hours" | "minutes" | "seconds">>;
8};