@bothub-chat/ui
Version:
Bothub UI Components
2 lines (1 loc) • 486 B
JavaScript
import{__rest as r}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import i from"react";import{TableCellSkeleton as s,TableCellStyled as o,TableCellText as m}from"./styled.js";const n=n=>{var{size:c="md",children:l}=n,d=r(n,["size","children"]);const p="string"==typeof l||i.isValidElement(l)&&l.type===s;return e(o,Object.assign({$size:c},d,{children:[p&&t(m,{children:l}),!p&&l]}))};export{n as TableCell,s as TableCellSkeleton,o as TableCellStyled,m as TableCellText};