import { useState } from "react"; import "./App.css"; import { GarminConnection } from "./components/GarminConnection"; import { Dashboard } from "./pages/Dashboard"; import { Profile } from "./pages/Profile"; import { ReviewQueue } from "./pages/ReviewQueue"; import { WorkoutKinds } from "./pages/WorkoutKinds"; const TABS = [ { key: "dashboard", label: "Progression", Component: Dashboard }, { key: "review", label: "Review Queue", Component: ReviewQueue }, { key: "kinds", label: "Workout Kinds", Component: WorkoutKinds }, { key: "profile", label: "Profile", Component: Profile }, ] as const; type TabKey = (typeof TABS)[number]["key"]; function App() { const [tab, setTab] = useState("dashboard"); const Active = TABS.find((t) => t.key === tab)!.Component; return (

smartrun

); } export default App;