2021-08-11 20:34:10 +00:00
|
|
|
import Countdown from 'react-countdown'
|
|
|
|
|
|
|
|
export default function SimpleCountdown ({ className, onComplete, date }) {
|
|
|
|
return (
|
2021-09-23 20:09:07 +00:00
|
|
|
<span className={className}>
|
2021-08-11 20:34:10 +00:00
|
|
|
<Countdown
|
|
|
|
date={date}
|
|
|
|
renderer={props => <span> {props.formatted.minutes}:{props.formatted.seconds}</span>}
|
|
|
|
onComplete={onComplete}
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
)
|
|
|
|
}
|