UNPKG

@privy-io/react-auth

Version:

React client for the Privy Auth API

16 lines (15 loc) 774 B
import{jsxs as r,jsx as e}from"react/jsx-runtime";import o from"@heroicons/react/24/outline/ExclamationCircleIcon";import{styled as i}from"styled-components";const t=({children:i,theme:t})=>/*#__PURE__*/r(l,{$theme:t,children:[/*#__PURE__*/e(o,{width:"20px",height:"20px",color:"var(--privy-color-icon-error)",strokeWidth:2,style:{flexShrink:0}}),/*#__PURE__*/e(n,{$theme:t,children:i})]});let l=i.div` display: flex; gap: 0.75rem; background-color: var(--privy-color-error-bg); align-items: flex-start; padding: 1rem; border-radius: 0.75rem; `,n=i.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; `;export{t as E};