import * as React from "react"; import {observer} from "mobx-react/index"; import {DesignerHost} from '../../DesignerHost'; import CommandModel from '../ui-model/CommandModel'; import CommandButton from './CommandButton'; import CommandSpliteLine from './CommandSpliteLine'; import CommandSelect from './CommandSelect'; import CommandSwitch from './CommandSwitch'; import CommandButtonGroup from './CommandButtonGroup'; import CommandDropDownMenu from './CommandDropDownMenu'; const commandType = { 'button': CommandButton, 'splitLine': CommandSpliteLine, 'select': CommandSelect, 'switch': CommandSwitch, 'buttonGroup': CommandButtonGroup, 'dropDownMenu': CommandDropDownMenu }; @observer export default class CommandBar extends React.Component<{}, {}> { private _commandModel:CommandModel; constructor(props:{}, context:any) { super(props, context); this._commandModel = DesignerHost.instance().uiModel.commandModel; } render():JSX.Element { return (