desmy-react
Version:
Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.
18 lines (17 loc) • 660 B
TypeScript
import { default as React, Component } from 'react';
import { DateContextProps } from './DateContext';
interface TimePickerProps {
useRange?: boolean;
onConfirm?: () => void;
}
declare class TimePicker extends Component<TimePickerProps> {
static contextType: React.Context<DateContextProps | undefined>;
context: DateContextProps;
componentDidMount(): void;
formatTime: (date: Date) => string;
addHours: (date: Date, hoursToAdd: number) => Date;
handleStartTimeChange: (value: string) => void;
handleEndTimeChange: (value: string) => void;
render(): import("react/jsx-runtime").JSX.Element;
}
export default TimePicker;