import * as React from 'react'; import classNames from 'classnames'; export interface CellProps { itemPrefixCls: string; span: number; className?: string; component: string; style?: React.CSSProperties; bordered?: boolean; label?: React.ReactNode; content?: React.ReactNode; colon?: boolean; } const Cell: React.FC = ({ itemPrefixCls, component, span, className, style, bordered, label, content, colon, }) => { const Component = component as any; if (bordered) { return ( {label || content} ); } return ( {label && ( {label} )} {content && {content}} ); }; export default Cell;