@playlive/fundraiser-data
    Preparing search index...

    Function fetchDonorSpotlight

    • Fetch the computed donor spotlight (donor-of-the-hour + biggest donation of the day + community hero) for a Tiltify campaign from the Play Live donor-spotlight service.

      Returns null when the service reports non-2xx — mirrors the historical overlay behavior of "no spotlight yet" being non-fatal. Every timestamp is coerced to a Date on the way out so consumers can hand the result straight to formatters.

      Pairs with useDonorSpotlight from @playlive/react-pipeline/fusion for a REST-baseline + WebSocket-store overlay view.

      Parameters

      Returns Promise<DonorSpotlightSnapshot | null>

      Error when donorSpotlightApiUrl is not configured.