import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {get} from 'lodash'; /** * @ngdoc react * @name TermsList * @description Displays a list of terms: subject, categories */ const TermsList: React.StatelessComponent = ({terms, displayField, onClick, readOnly}) => (
); TermsList.propTypes = { terms: PropTypes.array.isRequired, displayField: PropTypes.string, onClick: PropTypes.func, readOnly: PropTypes.bool, }; TermsList.defaultProps = {readOnly: false}; export default TermsList;