// Mêmes valeurs que `App\Enum\FoodEntryCategory` (PHP) — dupliqué ici faute de
// pouvoir partager une source commune entre backend et client mobile (cf. `categoryGradients` dans theme/index.ts).
export const CATEGORY_OPTIONS = [
  { value: 'breakfast', label: 'Petit déjeuner' },
  { value: 'morning_snack', label: 'Collation (matin)' },
  { value: 'lunch', label: 'Déjeuner' },
  { value: 'afternoon_snack', label: 'Collation (après-midi)' },
  { value: 'dinner', label: 'Dîner' },
] as const;

export function suggestCategory(): string {
  const now = new Date();
  const minutes = now.getHours() * 60 + now.getMinutes();
  if (minutes < 10 * 60) return 'breakfast';
  if (minutes < 12 * 60) return 'morning_snack';
  if (minutes < 15 * 60) return 'lunch';
  if (minutes < 18 * 60 + 30) return 'afternoon_snack';
  return 'dinner';
}
