@bothub-chat/ui
Version:
Bothub UI Components
2 lines (1 loc) • 1.08 kB
JavaScript
import{__rest as e}from"tslib";import{jsx as l,jsxs as r}from"react/jsx-runtime";import{ReferralRadioStyled as o,ReferralRadioContent as n,ReferralRadioHead as t,ReferralRadioName as i,ReferralRadioRadio as d,ReferralRadioBody as a}from"./styled.js";export{ReferralRadioGroup,ReferralRadioTable,ReferralRadioTableCell,ReferralRadioTableHeadCell,ReferralRadioTableRow,ReferralRadioTableSelectedCell}from"./styled.js";import{Skeleton as s}from"../../skeleton/index.js";const c=c=>{var k,m,{children:R}=c,h=e(c,["children"]);const f=null!==(k=!h.skeleton&&h.checked)&&void 0!==k&&k,p=null!==(m=h.skeleton)&&void 0!==m&&m;return l(o,{$checked:f,$skeleton:p,children:r(n,{$checked:f,$skeleton:p,children:[r(t,{children:[r(i,{children:[!h.skeleton&&h.name,h.skeleton&&l(s,{width:300})]}),!h.skeleton&&l(d,Object.assign({},h,{name:h.inputName,children:null})),h.skeleton&&l(d,{skeleton:!0})]}),l(a,{children:R})]})})};export{c as ReferralRadio,a as ReferralRadioBody,n as ReferralRadioContent,t as ReferralRadioHead,i as ReferralRadioName,d as ReferralRadioRadio,o as ReferralRadioStyled};