refactor files

This commit is contained in:
2026-04-12 23:36:14 +07:00
parent 20ae176992
commit 406d7039d6
45 changed files with 162 additions and 255 deletions

View File

@@ -0,0 +1,14 @@
interface TimerProps {
seconds?: number
}
export function Timer({ seconds = 0 }: TimerProps) {
const mins = Math.floor(seconds / 60)
const secs = seconds % 60
return (
<div className="font-mono text-lg font-semibold tabular-nums">
{String(mins).padStart(2, "0")}:{String(secs).padStart(2, "0")}
</div>
)
}