"use client"; import { pixelLabel } from "@/lib/styles"; import type { ProviderId, ProviderInfo } from "@/lib/weather/types"; import { ChoiceChips } from "./ui/ChoiceChips"; /** * Switcher between active weather data sources. * Only configured providers are shown; hidden automatically if only one source is active. */ export function ProviderPicker({ providers, selected, onChange }: { providers: ProviderInfo[]; selected: ProviderId; onChange: (id: ProviderId) => void; }) { if (providers.length <= 1) return null; return (