UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

2 lines (1 loc) 1.68 kB
import{jsx as t}from"react/jsx-runtime";import{HelpCircle as e}from"lucide-react";import{u as o}from"./context-WTldtXS8.mjs";import{u as i}from"./internal-context-Z-fyxadS.mjs";import{a as r}from"./get-is-unified-wallet-Boa8DYrQ.mjs";import{S as a}from"./ScreenLayout-DTmQLGPf.mjs";import"react";import"@privy-io/js-sdk-core";import"tinycolor2";import"ofetch";import"@privy-io/are-addresses-equal";import"./ModalHeader-D8-mhjp4.mjs";import"styled-components";import"./useActiveWallet-3RHPIBxJ.mjs";import"zustand";import"react-device-detect";import"./use-export-wallet-CV4p7L0b.mjs";import"eventemitter3";import"viem/utils";import"./useWallets-CR0z5IIt.mjs";import"./events-context-CI0iqAXA.mjs";import"viem";import"./getPublicClient-B4uPLKn-.mjs";import"@heroicons/react/24/outline/ArrowLeftIcon";import"@heroicons/react/24/outline/ArrowRightIcon";import"@heroicons/react/24/outline/QuestionMarkCircleIcon";import"@heroicons/react/24/outline/XMarkIcon";import"./Screen-Bp-TN9gb.mjs";import"./index-Dq_xe9dz.mjs";const n=({title:o="Account not found",subtitle:i,appName:r="this app",ctaText:n="Try logging in again",onRetry:m})=>/*#__PURE__*/t(a,{title:o,subtitle:i||`Please try logging in again or go to ${r} to create an account.`,icon:e,iconVariant:"warning",primaryCta:{label:n,onClick:m},watermark:!0}),m={component:()=>{let{navigate:e,setModalData:a,data:m}=r(),s=o(),{getAuthMeta:c,client:p}=i();/*#__PURE__*/return t(n,{appName:s?.name,onRetry:()=>{let t=c();a({...m,login:{...m?.login,...t?.disableSignup?{disableSignup:!0}:{}}}),p?.authFlow&&(p.authFlow=void 0),e("LandingScreen")}})}};export{m as AccountNotFoundScreen,n as AccountNotFoundScreenView,m as default};