import { useEnrichmentPrimary } from '../music-network';

/**
 * Display label of the current enrichment-primary account (e.g. "Last.fm",
 * "Libre.fm"), or null when no primary is set. Use this for any user-facing
 * "love / stats come from <provider>" copy so the UI never hardcodes a single
 * provider name — the primary can be any enrichment-eligible service.
 */
export function useEnrichmentPrimaryLabel(): string | null {
  return useEnrichmentPrimary()?.label ?? null;
}
