Memoised projection of any Tiltify campaign / fundraising-event
payload down to the standard { totalAmount, currentAmount, goalAmount, originalGoalAmount, supportingAmount } scalar
breakdown — the shape every overlay progress bar / stats panel
expects.
Thin useMemo over
import("@playlive/fundraiser-data").extractCampaignAmounts
so the returned object is reference-stable across renders (safe to
pass into useEffect deps, useMemo deps, or a memoised child
component without re-triggering).
Memoised projection of any Tiltify campaign / fundraising-event payload down to the standard
{ totalAmount, currentAmount, goalAmount, originalGoalAmount, supportingAmount }scalar breakdown — the shape every overlay progress bar / stats panel expects.Thin
useMemoover import("@playlive/fundraiser-data").extractCampaignAmounts so the returned object is reference-stable across renders (safe to pass intouseEffectdeps,useMemodeps, or a memoised child component without re-triggering).