@privy-io/react-auth
Version:
React client for the Privy Auth API
2 lines (1 loc) • 1.2 kB
JavaScript
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{styled as t}from"styled-components";let o=({data:t})=>{let o=t=>"object"==typeof t&&null!==t?/*#__PURE__*/e(a,{children:Object.entries(t).map((([e,t])=>/*#__PURE__*/r("li",{children:[/*#__PURE__*/r("strong",{children:[e,":"]})," ",o(t)]},e)))}):/*#__PURE__*/e("span",{children:String(t)});/*#__PURE__*/return e("div",{children:o(t)})};const i=/*#__PURE__*/t.div.withConfig({displayName:"Message",componentId:"sc-70ec2a4f-0"})(["margin-top:1.5rem;background-color:var(--privy-color-background-2);border-radius:var(--privy-border-radius-md);padding:12px;text-align:left;max-height:310px;overflow:scroll;white-space:pre-wrap;width:100%;font-size:0.875rem;font-weight:400;color:var(--privy-color-foreground);line-height:1.5;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]);let a=/*#__PURE__*/t.ul.withConfig({displayName:"MessageList",componentId:"sc-70ec2a4f-1"})(["margin-left:12px !important;white-space:nowrap;&:first-child{margin-left:0 !important;}strong{font-weight:500 !important;}"]);const n=({data:r,className:t})=>/*#__PURE__*/e(i,{className:t,children:/*#__PURE__*/e(o,{data:r})});export{n as D,i as M};