import { useTranslation } from 'react-i18next'; import { useHomeStore, HomeSectionId } from '../../store/homeStore'; export function HomeCustomizer() { const { t } = useTranslation(); const { sections, toggleSection } = useHomeStore(); const SECTION_LABELS: Record = { hero: t('home.hero'), recent: t('home.recent'), discover: t('home.discover'), becauseYouLike: t('home.becauseYouLike'), discoverSongs: t('home.discoverSongs'), discoverArtists: t('home.discoverArtists'), recentlyPlayed: t('home.recentlyPlayed'), starred: t('home.starred'), mostPlayed: t('home.mostPlayed'), losslessAlbums: t('home.losslessAlbums'), }; return (
{sections.map(sec => (
{SECTION_LABELS[sec.id]}
))}
); }