import { Col } from 'antd'; import { ColProps } from 'antd/es/col'; import React from 'react'; import styles from './index.less'; import responsive from './responsive'; export interface DescriptionProps extends ColProps { column?: number; key?: string | number; style?: React.CSSProperties; term?: React.ReactNode; } const Description: React.FC = ({ term = '', column, children, ...restProps }) => ( {term &&
{term}
} {children !== null && children !== undefined &&
{children}
} ); export default Description;