signal-desktop/ts/components/Countdown.md
2019-07-17 11:29:51 -07:00

459 B

New timer

<div style={{ backgroundColor: 'darkgray' }}>
  <Countdown
    expiresAt={Date.now() + 10 * 1000}
    duration={10 * 1000}
    onComplete={() => console.log('onComplete - new timer')}
  />
</div>

Already started

<div style={{ backgroundColor: 'darkgray' }}>
  <Countdown
    expiresAt={Date.now() + 10 * 1000}
    duration={30 * 1000}
    onComplete={() => console.log('onComplete - already started')}
  />
</div>