import * as React from "react"; import { BaseBottomGutterProps } from "./view.pc"; import { Dispatch } from "redux"; import { ScriptProcess } from "../../../../state"; import { closeBottomGutterButtonClicked } from "../../../../actions"; export type Props = { show: boolean; scriptProcesses: ScriptProcess[]; dispatch: Dispatch; }; export default (Base: React.ComponentClass) => class BottomGutterController extends React.PureComponent { onCloseClick = () => { this.props.dispatch(closeBottomGutterButtonClicked()); }; render() { const { onCloseClick } = this; const { show, dispatch, scriptProcesses, ...rest } = this.props; if (!show) { return false; } return ( ); } };