|
1 | 1 | import { format } from 'date-fns'; |
| 2 | +import { |
| 3 | + Activity, |
| 4 | + Dumbbell, |
| 5 | + HeartPulse, |
| 6 | + Flower2, |
| 7 | + ArrowBigUp, |
| 8 | + Zap, |
| 9 | + Hammer, |
| 10 | + ChevronsUp, |
| 11 | + Expand, |
| 12 | + Pause, |
| 13 | +} from 'lucide-react'; |
2 | 14 | export const EXERCISE_CATEGORIES = [ |
3 | 15 | { |
4 | 16 | value: 'general', |
@@ -52,6 +64,63 @@ export const EXERCISE_CATEGORIES = [ |
52 | 64 | }, |
53 | 65 | ] as const; |
54 | 66 |
|
| 67 | +export type ExerciseCategory = (typeof EXERCISE_CATEGORIES)[number]['value']; |
| 68 | + |
| 69 | +export const EXERCISE_CATEGORY_META: Record< |
| 70 | + ExerciseCategory, |
| 71 | + { icon: React.ElementType; color: string; bg: string } |
| 72 | +> = { |
| 73 | + general: { |
| 74 | + icon: Activity, |
| 75 | + color: 'text-slate-500', |
| 76 | + bg: 'bg-slate-100 dark:bg-slate-800', |
| 77 | + }, |
| 78 | + strength: { |
| 79 | + icon: Dumbbell, |
| 80 | + color: 'text-blue-600', |
| 81 | + bg: 'bg-blue-100 dark:bg-blue-900/40', |
| 82 | + }, |
| 83 | + cardio: { |
| 84 | + icon: HeartPulse, |
| 85 | + color: 'text-rose-500', |
| 86 | + bg: 'bg-rose-100 dark:bg-rose-900/40', |
| 87 | + }, |
| 88 | + yoga: { |
| 89 | + icon: Flower2, |
| 90 | + color: 'text-emerald-500', |
| 91 | + bg: 'bg-emerald-100 dark:bg-emerald-900/40', |
| 92 | + }, |
| 93 | + powerlifting: { |
| 94 | + icon: ArrowBigUp, |
| 95 | + color: 'text-orange-600', |
| 96 | + bg: 'bg-orange-100 dark:bg-orange-900/40', |
| 97 | + }, |
| 98 | + 'olympic weightlifting': { |
| 99 | + icon: Zap, |
| 100 | + color: 'text-yellow-500', |
| 101 | + bg: 'bg-yellow-100 dark:bg-yellow-900/40', |
| 102 | + }, |
| 103 | + strongman: { |
| 104 | + icon: Hammer, |
| 105 | + color: 'text-red-600', |
| 106 | + bg: 'bg-red-100 dark:bg-red-900/40', |
| 107 | + }, |
| 108 | + plyometrics: { |
| 109 | + icon: ChevronsUp, |
| 110 | + color: 'text-violet-500', |
| 111 | + bg: 'bg-violet-100 dark:bg-violet-900/40', |
| 112 | + }, |
| 113 | + stretching: { |
| 114 | + icon: Expand, |
| 115 | + color: 'text-teal-500', |
| 116 | + bg: 'bg-teal-100 dark:bg-teal-900/40', |
| 117 | + }, |
| 118 | + isometric: { |
| 119 | + icon: Pause, |
| 120 | + color: 'text-indigo-500', |
| 121 | + bg: 'bg-indigo-100 dark:bg-indigo-900/40', |
| 122 | + }, |
| 123 | +}; |
55 | 124 | export const DAYS_OF_WEEK = [ |
56 | 125 | { id: 0, name: 'Sunday' }, |
57 | 126 | { id: 1, name: 'Monday' }, |
|
0 commit comments