import{t as e}from"./jsx-runtime.js";import{t}from"./modal-context-DHfp-mFQ.js";import{r as n}from"./ModalHeader-BS54PZSj.js";var r=e();function i({title:e}){let{currentScreen:i,navigateBack:a,navigate:o,data:s,setModalData:c}=t();return(0,r.jsx)(n,{title:e,backFn:i===`ManualTransferScreen`?a:i===s?.funding?.methodScreen?s.funding.comingFromSendTransactionScreen?()=>o(`SendTransactionScreen`):void 0:s?.funding?.methodScreen?()=>{let e=s.funding;e.usingDefaultFundingMethod&&=!1,c({funding:e,solanaFundingData:s?.solanaFundingData}),o(e.methodScreen)}:void 0})}export{i as t};