UNPKG

react-timekeeper

Version:

Time picker based on the style of the Google Keep app

15 lines (14 loc) 515 B
/// <reference types="react" /> import { ElementRef } from '../helpers/types'; declare type CalcTimeFromAngle = (angle: number, { canAutoChangeMode, wasTapped, }: { canAutoChangeMode: boolean; wasTapped: boolean; isInnerClick: boolean; }) => void; export default function useClockEvents(clock: ElementRef, handleChange: CalcTimeFromAngle): { bind: { onMouseDown: (e: React.MouseEvent<HTMLElement>) => void; ref: import("react").MutableRefObject<HTMLDivElement>; }; }; export {};