@privy-io/react-auth
Version:
React client for the Privy Auth API
3 lines (2 loc) • 1.1 kB
JavaScript
;var e=require("react/jsx-runtime"),t=require("styled-components");let r=/*#__PURE__*/t.styled.div.withConfig({displayName:"StyledSection",componentId:"sc-523a75d6-1"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;width:100%;margin-bottom:24px;&& h3{font-size:17px;color:var(--privy-color-foreground);}&& p{color:var(--privy-color-foreground-2);font-size:14px;}"]),i=/*#__PURE__*/t.styled(r).withConfig({displayName:"CenteredStyledSection",componentId:"sc-523a75d6-2"})(["align-items:center;text-align:center;gap:16px;h3{margin-bottom:24px;}"]);exports.CenteredScreenHeader=({title:t,description:r,icon:n,children:o,...l})=>/*#__PURE__*/e.jsxs(i,{...l,children:[n||null,/*#__PURE__*/e.jsx("h3",{children:t}),r&&"string"==typeof r?/*#__PURE__*/e.jsx("p",{children:r}):r,o]}),exports.ScreenHeader=({title:t,description:i,children:n,...o})=>
/*#__PURE__*/e.jsx(r,{...o,children:/*#__PURE__*/e.jsxs(e.Fragment,{children:[/*#__PURE__*/e.jsx("h3",{children:t}),"string"==typeof i?/*#__PURE__*/e.jsx("p",{children:i}):i,n]})});