"use client"; import { SettingsSection, SettingsRow, SettingsSelect } from "../ui"; import { SystemSettings } from "../../types"; interface DownloadPreferencesSectionProps { settings: SystemSettings; onUpdate: (updates: Partial) => void; } export function DownloadPreferencesSection({ settings, onUpdate, }: DownloadPreferencesSectionProps) { return ( onUpdate({ downloadSource: v as "soulseek" | "lidarr" }) } options={[ { value: "soulseek", label: "Soulseek (Per-track)" }, { value: "lidarr", label: "Lidarr (Full albums)" }, ]} /> {settings.downloadSource === "soulseek" && ( onUpdate({ soulseekFallback: v as "none" | "lidarr", }) } options={[ { value: "none", label: "Skip track" }, { value: "lidarr", label: "Download full album via Lidarr", }, ]} /> )} ); }