import React from 'react'; import Checkbox from 'coral-ui/components/Checkbox'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './StreamConfiguration.css'; import uuid from 'uuid/v4'; class Configuration extends React.Component { id = uuid(); render() { const { title, description, children, className, onCheckbox, checked, ...rest } = this.props; return (
{checked !== undefined && (
)}
{description}
{children}
); } } Configuration.propTypes = { title: PropTypes.string.isRequired, description: PropTypes.string, className: PropTypes.string, onCheckbox: PropTypes.func, checked: PropTypes.bool, children: PropTypes.node, }; export default Configuration;