@privy-io/react-auth
Version:
React client for the Privy Auth API
2 lines (1 loc) • 1.75 kB
JavaScript
import{jsx as t}from"react/jsx-runtime";import{Lock as o}from"lucide-react";import"react";import{u as e}from"./context-Bycd1SKV.mjs";import{a as i}from"./get-is-unified-wallet-DvKS5IUO.mjs";import{S as r}from"./ScreenLayout-CddsD3Of.mjs";import"@privy-io/js-sdk-core";import"tinycolor2";import"viem";import"./internal-context-e-Eni5bG.mjs";import"ofetch";import"./Button-B8mqatRx.mjs";import"styled-components";import"./useActiveWallet-Bsy5GTCV.mjs";import"zustand";import"react-device-detect";import"./prepareFundingModalData-CIgFwA7s.mjs";import"eventemitter3";import"./events-context-CI0iqAXA.mjs";import"viem/utils";import"./getPublicClient-A9RSftUZ.mjs";import"./useWallets-D0lpBS44.mjs";import"./Screen-BTyXgDrd.mjs";import"./ModalHeader-BLGC-7ev.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"./index-CJMgUOnw.mjs";const n=({title:e="You don't have access to this app",subtitle:i="Have you been invited?",ctaText:n="Try another account",ctaLink:a,onCtaClick:m})=>/*#__PURE__*/t(r,{title:e,subtitle:i,icon:o,iconVariant:"warning",primaryCta:{label:n,onClick:()=>{a?window.open(a,"_blank"):m?.()}},watermark:!0}),a={component:()=>{let{navigate:o}=i(),r=e(),a=r?.allowlistConfig.errorTitle||"You don't have access to this app",m=r?.allowlistConfig.errorDetail||"Have you been invited?",c=r?.allowlistConfig.errorCtaText||"Try another account",l=r?.allowlistConfig.errorCtaLink;/*#__PURE__*/return t(n,{title:a,subtitle:m,ctaText:c,ctaLink:l??void 0,onCtaClick:()=>{o("LandingScreen")}})}};export{a as AllowlistRejectionScreen,n as AllowlistRejectionScreenView,a as default};