Module 899343

345 characters · in 9ecce3e5440da67c.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,s,t){t.d(s,{f:()=>a});var n=t(64700),i=t(166532),r=t(566980);function a(e){let{purchaseState:s,currentStep:t,initialScene:a,purchaseScene:l,errorScene:c,successScene:u}=e,[o,d]=(0,n.useState)(a);return(0,n.useEffect)(()=>{s===r.h.PURCHASING?d(l):s===r.h.FAIL&&d(c)},[s,l,c]),(0,n.useEffect)(()=>{t===i.pn.CONFIRM&&d(u)},[t,u]),[o,d]}}