@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
21 lines (20 loc) • 874 B
TypeScript
import { default as React } from 'react';
import { IDuration } from '../../core/IDuration';
import { RuntimeSpan } from '../../core/RuntimeSpan';
export interface ClockDisplayProps {
duration: IDuration | undefined;
className?: string;
}
export declare const ClockDisplay: React.FC<ClockDisplayProps>;
export interface ClockAnchorProps {
clock: RuntimeSpan | undefined;
className?: string;
/** When true, shows remaining time instead of elapsed time (for countdown) */
/** Optional label text to display with the time */
label?: string;
/** When true, shows effort/exercise information alongside the timer */
showEffort?: boolean;
/** Optional custom render function */
render?: (duration: IDuration | undefined, label?: string, effort?: string) => React.ReactNode;
}
export declare const ClockAnchor: React.FC<ClockAnchorProps>;