File size: 564 Bytes
80175c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { cn } from "@/lib/utils"

export function Countdown({
  remainingTimeInSec,
  progressPercent
}: {
  remainingTimeInSec: number,
  progressPercent: number
}) {
  return (
    <div
      className={cn(
        `z-20`,
        `fixed top-8 right-8`,
        `radial-progress text-primary-content border-4`,
        `transition-all duration-1000`,
        `bg-sky-600/30`,
        `border-sky-800/30`,
          `text-blue-100`

      )}
      style={{
        "--value": progressPercent
      } as any}
    >{
      remainingTimeInSec
    }s
    </div>
  )
}