import { Alert, Pressable, StyleSheet, Text, View } from "react-native"; import { Button, Card, StatRow } from "../components/ui"; import { adjustHold, currentHold, resetProgress } from "../lib/store"; import { C } from "../lib/theme"; import { useStore } from "../lib/useStore"; import { MAX_HOLD, MIN_HOLD } from "../lib/workout"; function StepperButton({ label, disabled, onPress }: { label: string; disabled: boolean; onPress: () => void }) { return ( [s.step, disabled && s.stepDisabled, pressed && !disabled && s.stepPressed]} onPress={onPress} disabled={disabled} > {label} ); } export default function Settings() { const { sessionsCompleted, holdAdjust } = useStore(); const hold = currentHold(); return ( Difficulty adjustHold(-1)} /> {hold}s hold length = MAX_HOLD} onPress={() => adjustHold(1)} /> = 0 ? "+" : ""}${holdAdjust}s`} /> Holds grow automatically by 1s every 3 completed sessions ({MIN_HOLD}–{MAX_HOLD}s). Adjust here if a session feels too easy or too hard — the adjustment stacks with the automatic progression. Progress