UNPKG

react-spinner-timer

Version:
19 lines (18 loc) 586 B
import * as React from "react"; import "./index.scss"; export interface IProps { timeInSeconds: number; totalLaps: number; isRefresh?: boolean; onLapInteraction: Function; isPaused?: boolean; } /** * Component that counts the cycle of time * @param props.timeInSeconds lap time in seconds * @param props.totalLaps number of laps * @param props.isPause pause laps - true is default * @returns props.onLapInteraction function with data return for each lap */ declare const ReactSpinnerTimer: React.FC<IProps>; export default ReactSpinnerTimer;