import React from 'react' import { Row, Col, Checkbox } from 'antd' const styles = require('../Workbench.less') export interface IToolboxConfig { showToolbox: boolean } interface IToolboxSectionProps { title: string config: IToolboxConfig onChange: (prop: string, value: any) => void } export class ToolboxSection extends React.PureComponent { private checkboxChange = (prop) => (e) => { this.props.onChange(prop, e.target.checked) } public render () { const { title, config } = this.props const { showToolbox } = config return (

{title}

Toolbox
) } } export default ToolboxSection