"use client"; import { Card } from "@/components/ui/Card"; import { GOAL_LABELS, FITNESS_LEVEL_LABELS } from "@/lib/types"; interface GoalsStepProps { fitnessLevel: number; primaryGoal: string; secondaryGoal: string; onChange: (data: { fitness_level?: number; primary_goal?: string; secondary_goal?: string; }) => void; } const FITNESS_LEVEL_DESCRIPTIONS: Record = { 1: "New to structured training or returning after a long break.", 2: "Consistent training for 6+ months with good form knowledge.", 3: "Years of experience with complex programming and periodization.", 4: "Competitive athlete or highly experienced lifter.", }; const goalOptions = Object.keys(GOAL_LABELS); export function GoalsStep({ fitnessLevel, primaryGoal, secondaryGoal, onChange, }: GoalsStepProps) { return (

Your Fitness Profile

Tell us about your experience level and what you want to achieve.

{/* Fitness Level */}

Fitness Level

{Object.entries(FITNESS_LEVEL_LABELS).map(([key, label]) => { const level = Number(key); const isSelected = fitnessLevel === level; return ( onChange({ fitness_level: level })} className={`p-4 transition-all duration-150 ${ isSelected ? "border-[#39FF14] bg-[rgba(57,255,20,0.1)]" : "" }`} >
{label} {FITNESS_LEVEL_DESCRIPTIONS[level]}
); })}
{/* Primary Goal */}
{/* Secondary Goal */}
); }