import { Text, View } from '@/components/shared/Themed'; import styled from '@emotion/native'; import { formatTime } from '@/components/shared/business/timeHelpers'; import Button from '@/components/shared/Button'; import { VerticalSpacer } from '@/components/shared/Spacers'; import { TimerBgColor } from '@/components/useCases/timer/business/type'; import { useNavigation } from 'expo-router'; import { NativeStackNavigationProp } from 'react-native-screens/lib/typescript/native-stack/types'; import { RootStackParamList } from '@/app/RootStackParamList'; import { i18n } from '@/app/i18n/i18n'; interface TimerContentProps { isWorkPhase: boolean; timeLeft: number; reps: number; currentRep: number; isRunning: boolean; handleStop: () => void; handleContine: () => void; bgColor: TimerBgColor; } type NavigationProp = NativeStackNavigationProp; const t = i18n.scoped('timer.timerContent'); export default function TimerContent({ isWorkPhase, timeLeft, reps, currentRep, isRunning, handleStop, handleContine, bgColor, }: TimerContentProps ) { const navigation = useNavigation(); return ( <> {isWorkPhase ? t('fight') : t('rest')} {currentRep} / {reps} {isRunning ? (