UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

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