UNPKG

@devopness/ui-react

Version:

Devopness Design System React Components - Painless essential DevOps to everyone

26 lines (25 loc) 1.17 kB
type TimerCounterProps = { /** Start date for the timer. */ timerStartDate?: string | null; /** Final date for the timer. Counter will stop once it reaches this date. */ timerFinalDate?: string | null; /** Whether the timer should reset to 00:00. * @default false */ shouldResetTimer?: boolean; /** Whether the timer should stop but preserve current value. * @default false */ shouldStopTimer?: boolean; /** Whether the timer should start. * @default true */ shouldStartTimer?: boolean; /** Function to format the duration between start and final dates. */ formatDurationTime: (startDate?: string | null, finalDate?: string | null) => string; /** Function to format dates for tooltip display. */ formatDateTime: (date?: string | null) => string; }; declare const TimerCounterMemo: import('react').MemoExoticComponent<({ timerStartDate, timerFinalDate, shouldResetTimer, shouldStopTimer, shouldStartTimer, formatDurationTime, formatDateTime, }: TimerCounterProps) => import("react/jsx-runtime").JSX.Element>; export { TimerCounterMemo as TimerCounter }; export type { TimerCounterProps };