@privy-io/react-auth
Version:
React client for the Privy Auth API
2 lines (1 loc) • 2.05 kB
JavaScript
"use strict";var e=require("react/jsx-runtime"),r=require("./get-is-unified-wallet-UpdjHxOV.js"),i=require("./ScreenLayout-CMb-Fua0.js");require("@privy-io/are-addresses-equal"),require("react"),require("./context-D-ZJYjUg.js"),require("@privy-io/js-sdk-core"),require("tinycolor2"),require("./internal-context-BJv4f_bO.js"),require("ofetch"),require("./ModalHeader-BCPQgekO.js"),require("styled-components"),require("./useActiveWallet-Cn6zOXx5.js"),require("zustand"),require("react-device-detect"),require("./use-export-wallet-B5ujV5Nk.js"),require("eventemitter3"),require("viem/utils"),require("./useWallets-CKAypPZB.js"),require("./events-context-Di6--rDg.js"),require("viem"),require("./getPublicClient-BsmZyCGX.js"),require("@heroicons/react/24/outline/ArrowLeftIcon"),require("@heroicons/react/24/outline/ArrowRightIcon"),require("@heroicons/react/24/outline/QuestionMarkCircleIcon"),require("@heroicons/react/24/outline/XMarkIcon"),require("./Screen-BfKedqka.js"),require("./index-ByFhjjzH.js");const t=({style:r,...i})=>/*#__PURE__*/e.jsx("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"38px",width:"38px",...r},...i,children:/*#__PURE__*/e.jsx("path",{d:"M20 13.6V20M20 26.4H20.016M36 20C36 28.8365 28.8366 36 20 36C11.1635 36 4.00001 28.8365 4.00001 20C4.00001 11.1634 11.1635 3.99999 20 3.99999C28.8366 3.99999 36 11.1634 36 20Z",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round"})}),o=({title:r="Unable to sign in",subtitle:o="This is a test application that has reached its user limit. To allow more users, this app needs to be upgraded to production.",onGoBack:s})=>/*#__PURE__*/e.jsx(i.ScreenLayout,{title:r,subtitle:o,icon:t,iconVariant:"subtle",primaryCta:{label:"Go back",onClick:s},showBack:!0,onBack:s,watermark:!0}),s={component:()=>{let{navigate:i}=r.usePrivyModal();/*#__PURE__*/return e.jsx(o,{onGoBack:()=>{i("LandingScreen")}})}};exports.UserLimitReachedScreen=s,exports.UserLimitReachedScreenView=o,exports.default=s;