@privy-io/react-auth
Version:
React client for the Privy Auth API
19 lines (17 loc) • 967 B
JavaScript
;var e=require("react/jsx-runtime"),r=require("@heroicons/react/24/outline/InformationCircleIcon"),t=require("styled-components");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=/*#__PURE__*/o(r);let n=t.styled.div`
display: flex;
gap: 0.75rem;
background-color: var(--privy-color-background-2);
align-items: flex-start;
padding: 1rem;
border-radius: 0.75rem;
`,l=t.styled.div`
color: ${e=>"dark"===e.$theme?"var(--privy-color-foreground-2)":"var(--privy-color-foreground)"};
flex: 1;
text-align: left;
/* text-sm/font-regular */
font-size: 0.875rem;
font-style: normal;
font-weight: 400;
line-height: 1.375rem; /* 157.143% */
`;exports.InfoBanner=({children:r,theme:t})=>/*#__PURE__*/e.jsxs(n,{$theme:t,children:[/*#__PURE__*/e.jsx(i.default,{width:"20px",height:"20px",color:"var(--privy-color-icon-muted)",strokeWidth:1.5,style:{flexShrink:0}}),/*#__PURE__*/e.jsx(l,{$theme:t,children:r})]});