import { Connect } from "dob-react" import * as React from "react" import Icon from "../../components/icon/src" import { Tooltip } from "../../components/tooltip/src" import { StoreProps } from "../../stores" import * as Styled from "./style" export class Props extends StoreProps { } export class State { } @Connect class DragMenuButton extends React.Component { public static defaultProps = new Props() public state = new State() public render() { return ( ) } private handleClick = () => { if (this.props.stores.ApplicationStore.leftTool !== "dragMenu") { this.props.actions.ApplicationAction.setLeftTool("dragMenu") this.props.actions.ApplicationAction.setRightTool(null) } else { this.props.actions.ApplicationAction.setLeftTool(null) this.props.actions.ApplicationAction.setRightTool(null) } } } export default { position: "leftBarTop", class: DragMenuButton }