UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

2 lines (1 loc) 1 kB
"use strict";var e=require("react/jsx-runtime"),r=require("@heroicons/react/24/outline/ExclamationCircleIcon"),o=require("styled-components");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=/*#__PURE__*/t(r);let n=/*#__PURE__*/o.styled.div.withConfig({displayName:"Container",componentId:"sc-34910fd1-0"})(["display:flex;gap:0.75rem;background-color:var(--privy-color-error-bg);align-items:flex-start;padding:1rem;border-radius:0.75rem;"]),l=/*#__PURE__*/o.styled.div.withConfig({displayName:"Content",componentId:"sc-34910fd1-1"})(["color:",";font-size:1rem;font-weight:400;line-height:1.5;flex:1;text-align:left;"],(e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"));exports.ErrorBanner=({children:r,theme:o})=>/*#__PURE__*/e.jsxs(n,{$theme:o,children:[/*#__PURE__*/e.jsx(i.default,{width:"20px",height:"20px",color:"var(--privy-color-icon-error)",strokeWidth:2,style:{flexShrink:0}}),/*#__PURE__*/e.jsx(l,{$theme:o,children:r})]});