import"./rolldown-runtime.js";import{n as e,t}from"./jsx-runtime.js";import{Vt as n,j as r}from"./useActiveWallet-CEs8euQ3.js";import"./context-Cdw68BC2.js";import{t as i}from"./modal-context-DHfp-mFQ.js";import{t as a}from"./circle-x.js";import{t as o}from"./ScreenLayout-Dy-3vlz4.js";var s=t();e(),r();var c=({title:e=`Could not connect with wallet`,subtitle:t=`Please check that Phantom multichain is enabled and try again.`,primaryCtaText:n=`Try again`,secondaryCtaText:r=`Cancel`,onTryAgain:i,onCancel:c})=>(0,s.jsx)(o,{title:e,subtitle:t,icon:a,iconVariant:`error`,primaryCta:{label:n,onClick:i},secondaryCta:{label:r,onClick:c},watermark:!0}),l={component:()=>{let{closePrivyModal:e}=n(),{navigate:t}=i();return(0,s.jsx)(c,{onTryAgain:()=>{t(`LandingScreen`)},onCancel:async()=>{await e()}})}};export{l as LoginFailedScreen,l as default,c as LoginFailedScreenView};