import React from 'react' import colors from '../../config/colors' import { margins, fontSizes } from '../../config/scales' import CollapseOpenIcon from 'react-icons/lib/md/arrow-drop-down' import CollapseCloseIcon from 'react-icons/lib/md/arrow-drop-up' class Collapser extends React.Component { static propTypes = { isCollapsed: React.PropTypes.bool.isRequired, } render() { const iconStyle = { width: 20, height: 20, } return this.props.isCollapsed ? : } } export default class LayerEditorGroup extends React.Component { static propTypes = { title: React.PropTypes.string.isRequired, isActive: React.PropTypes.bool.isRequired, children: React.PropTypes.element.isRequired, onActiveToggle: React.PropTypes.func.isRequired } render() { return
this.props.onActiveToggle(!this.props.isActive)} > {this.props.title}
{this.props.children}
} }