| 35 | import { StatDisplay } from "./stat-display-and-input"; |
| 36 | |
| 37 | interface HeaderProps { |
| 38 | stopTimer: () => void; |
| 39 | isWorkoutPaused: boolean; |
| 40 | numberOfExercises: number; |
| 41 | isSaveBtnLoading: boolean; |
| 42 | toggleTimerDrawer: () => void; |
| 43 | shouldDisplayFinishButton: boolean; |
| 44 | shouldDisplayCancelButton: boolean; |
| 45 | shouldDisplayWorkoutTimer: boolean; |
| 46 | shouldDisplayReorderButton: boolean; |
| 47 | setIsSaveBtnLoading: (value: boolean) => void; |
| 48 | openReorderDrawer: (exerciseIdentifier: string | null) => void; |
| 49 | setAssetsModalOpened: (value: string | null | undefined) => void; |
| 50 | loaderData: { |
| 51 | action: FitnessAction; |
| 52 | isUpdatingWorkout: boolean; |
| 53 | isCreatingTemplate: boolean; |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | export function WorkoutHeader(props: HeaderProps) { |
| 58 | const navigate = useNavigate(); |
nothing calls this directly
no outgoing calls
no test coverage detected