You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
714 B
13 lines
714 B
import type { Dayjs } from 'dayjs';
|
|
import type { GetDisabledHoursState, GetDisabledMinutesState, GetDisabledSecondsState } from '../types';
|
|
declare type UseTimePanelProps = {
|
|
getAvailableHours: GetDisabledHoursState;
|
|
getAvailableMinutes: GetDisabledMinutesState;
|
|
getAvailableSeconds: GetDisabledSecondsState;
|
|
};
|
|
export declare const useTimePanel: ({ getAvailableHours, getAvailableMinutes, getAvailableSeconds, }: UseTimePanelProps) => {
|
|
timePickerOptions: Record<string, (...args: any[]) => void>;
|
|
getAvailableTime: (date: Dayjs, role: string, first: boolean, compareDate?: Dayjs | undefined) => Dayjs;
|
|
onSetOption: ([key, val]: [string, (...args: any[]) => void]) => void;
|
|
};
|
|
export {};
|
|
|