UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

2 lines (1 loc) 488 B
"use strict";var e=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=/*#__PURE__*/t(require("@heroicons/react/24/outline/WalletIcon"));exports.InjectedWalletIcon=({icon:t,name:r})=>"string"==typeof t?/*#__PURE__*/e.jsx("img",{alt:`${r||"wallet"} logo`,src:t,style:{height:24,width:24,borderRadius:4}}):void 0===t?/*#__PURE__*/e.jsx(i.default,{style:{height:24,width:24}}):t?/*#__PURE__*/e.jsx(t,{style:{height:24,width:24}}):null;