import { useTranslation } from 'react-i18next'; import { AudioLines, Music2 } from 'lucide-react'; import { useAuthStore } from '../../store/authStore'; import SettingsSubSection from '../SettingsSubSection'; import { LyricsSourcesCustomizer } from './LyricsSourcesCustomizer'; export function LyricsTab() { const { t } = useTranslation(); const sidebarLyricsStyle = useAuthStore(s => s.sidebarLyricsStyle); const setSidebarLyricsStyle = useAuthStore(s => s.setSidebarLyricsStyle); return ( <> } > } >
{(['classic', 'apple'] as const).map(style => { const key = style === 'classic' ? 'Classic' : 'Apple'; const other = style === 'classic' ? 'apple' : 'classic'; return (
{t(`settings.sidebarLyricsStyle${key}` as any)}
{t(`settings.sidebarLyricsStyle${key}Desc` as any)}
); })}
); }