// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import * as Utils from 'utils/utils.jsx'; import BackstageCategory from './backstage_category.jsx'; import BackstageSection from './backstage_section.jsx'; import {FormattedMessage} from 'react-intl'; export default class BackstageSidebar extends React.Component { render() { let incomingWebhooks = null; if (window.mm_config.EnableIncomingWebhooks === 'true') { incomingWebhooks = ( )} /> ); } let outgoingWebhooks = null; if (window.mm_config.EnableOutgoingWebhooks === 'true') { outgoingWebhooks = ( )} /> ); } let commands = null; if (window.mm_config.EnableCommands === 'true') { commands = ( )} /> ); } return (
    } > {incomingWebhooks} {outgoingWebhooks} {commands}
); } }