File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
packages/pwa/src/components/Counter Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ import * as React from 'react' ;
2+
3+ import { DurationInput } from '../DurationInput/DurationInput' ;
4+
5+ type CounterProps = {
6+ timeLeft : Date ;
7+ roundsLeft : number ;
8+ rounds : number ;
9+ } ;
10+
11+ export function Counter ( { timeLeft, roundsLeft, rounds } : CounterProps ) {
12+ return (
13+ < div className = "flex flex-col items-center" >
14+ < div className = "flex flex-col items-center mb-20" >
15+ < span className = "text-blue-600 text-lg font-bold" > ROUND</ span >
16+ < span className = "text-4xl" data-testid = { 'round' } > { `${
17+ rounds - roundsLeft
18+ } /${ rounds } `} </ span >
19+ </ div >
20+ < div className = "" >
21+ < div className = "" > </ div >
22+ < DurationInput value = { timeLeft } readOnly dataTestId = { 'time-left' } />
23+ </ div >
24+ </ div >
25+ ) ;
26+ }
You can’t perform that action at this time.
0 commit comments