import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Col } from 'antd'; import styles from './index.less'; import responsive from './responsive'; const Description = ({ term, column, className, children, ...restProps }) => { const clsString = classNames(styles.description, className); return ( {term &&
{term}
} {children &&
{children}
} ); }; Description.defaultProps = { term: '', children: '', }; Description.propTypes = { term: PropTypes.oneOfType([ PropTypes.string, PropTypes.element, ]), children: PropTypes.oneOfType([ PropTypes.string, PropTypes.element, ]), }; export default Description;