"use strict";var e=require("react"),r=require("./internal-context-CdsQ3LEl.js");exports.useGetSolPrice=({enabled:t=!0}={})=>{let{showFiatPrices:i,getUsdPriceForSol:s}=r.usePrivyInternal(),[a,c]=e.useState(!0),[o,l]=e.useState(void 0),[n,u]=e.useState(void 0);return e.useEffect((()=>{(async()=>{if(i&&t)try{c(!0);let e=await s();e?u(e):l(Error("Unable to fetch SOL price"))}catch(e){l(e)}finally{c(!1)}else c(!1)})()}),[]),{solPrice:n,isSolPriceLoading:a,solPriceError:o}};
//# sourceMappingURL=useGetSolPrice-BOxa4idj.js.map
