xxxxxxxxxx
<CountdownCircleTimer
isPlaying
duration={duration}
>
// PUT THE FORMAT HERE
// for example mine is minutes:seconds
{({ remainingTime }) => {
const minutes = Math.floor(remainingTime / 60);
const seconds = remainingTime % 60;
// makes sure there's two digits for seconds
const formattedSeconds =
seconds < 10 ? `0${seconds}` : seconds;
return `${minutes}:${formattedSeconds}`;
}}
</CountdownCircleTimer>