import autobind from "autobind-decorator" ; import React from "react" ; import SplitPane from "react-split-pane" ; import { IColumnHeaderProps } from "props/panels" ; /** A component acting as a header at the top of each column. */ class ColumnHeader extends React . PureComponent < IColumnHeaderProps > { returns public render ( ) { return < SplitPane style = { this . props . columnStyles } size = { this . props . columnSize } onChange = { this . handleChange } > < div > { this . props . heading } < /div> { this . props . children } < /SplitPane>; } param newSize @ autobind private handleChange ( newSize ) { this . props . onChange ( newSize , this . props . columnType ) ; } } export default ColumnHeader ;