import { useTranslation } from 'react-i18next'; import { AlertTriangle, Check, Image as ImageIcon, Info, Sparkles, Wifi } from 'lucide-react'; import { useAuthStore } from '../../store/authStore'; import { useThemeStore } from '../../store/themeStore'; import SettingsSubSection from '../SettingsSubSection'; import { SettingsGroup } from './SettingsGroup'; import { SettingsToggle } from './SettingsToggle'; import { SettingsSubCard, SettingsField } from './SettingsSubCard'; import { BackdropSourceList } from './BackdropSourceList'; import type { BackdropSurface } from '../../store/themeStore'; import type { BackdropSource } from '../../cover/artistBackdrop'; import { MusicNetworkSection } from './musicNetwork/MusicNetworkSection'; import { purgeExternalArtworkAllServers } from '../../api/coverCache'; export function IntegrationsTab() { const { t } = useTranslation(); const auth = useAuthStore(); const theme = useThemeStore(); const backdropSurfaces: { key: BackdropSurface; label: string }[] = [ { key: 'mainstageHero', label: t('settings.backdropSurfaceMainstage') }, { key: 'artistDetailHero', label: t('settings.backdropSurfaceArtistDetail') }, { key: 'fullscreenPlayer', label: t('settings.backdropSurfaceFullscreen') }, ]; const backdropSourceLabel = (s: BackdropSource): string => s === 'banner' ? t('settings.backdropSourceBanner') : s === 'fanart' ? t('settings.backdropSourceFanart') : t('settings.backdropSourceNavidrome'); return ( <>