import React from 'react' import PropTypes from 'prop-types' import Collapser from './Collapser' import Collapse from './Collapse' export default class LayerEditorGroup extends React.Component { static propTypes = { "data-wd-key": PropTypes.string, title: PropTypes.string.isRequired, isActive: PropTypes.bool.isRequired, children: PropTypes.element.isRequired, onActiveToggle: PropTypes.func.isRequired } render() { return
this.props.onActiveToggle(!this.props.isActive)} > {this.props.title}
{this.props.children}
} }