/**
 * TabataFit Translated Data Hooks
 * Wraps raw data objects with t() lookups at render time.
 */

import { useTranslation } from 'react-i18next'

/** Translate a music vibe name */
export function useMusicVibeLabel(vibe: string): string {
  const { t } = useTranslation('common')
  const vibeKeyMap: Record<string, string> = {
    electronic: 'musicVibes.electronic',
    'hip-hop': 'musicVibes.hipHop',
    pop: 'musicVibes.pop',
    rock: 'musicVibes.rock',
    chill: 'musicVibes.chill',
  }
  return t(vibeKeyMap[vibe] ?? vibe, { defaultValue: vibe })
}
