/** * The panel to edit the filter * */ import React, { PropTypes } from 'react'; import { Icon } from 'antd'; import { getQueryParameter } from 'common/CommonUtil'; import Style from './title-bar.less'; class TitleBar extends React.Component { constructor () { super(); this.state = { inMaxWindow: false, inApp: getQueryParameter('in_app_mode') // will only show the bar when in app }; } static propTypes = { } render() { if (this.state.inApp !== 'true') { return null; } // the buttons with normal window size const normalButton = (