UNPKG

@rc-component/notification

Version:
6 lines (5 loc) 289 B
/** * Runs the notice auto-close timer and reports progress updates. * Returns controls to pause and resume the timer. */ export default function useNoticeTimer(duration: number | false | null, onClose: VoidFunction, onUpdate: (ptg: number) => void): readonly [() => void, () => void];