import React from 'react';
import PropTypes from 'prop-types';
import { get, bindAll } from 'lodash';
import Config from '../config';
import Extensions from '../extensions';
function Logo() {
const url = get(Config, 'system_settings.logo.thumbnail_url');
const title = get(Extensions, 'controlling.title');
return url ?
: {title};
}
export default class Navbar extends React.Component {
static contextTypes = {
uistate: PropTypes.object.isRequired,
}
constructor(props) {
super(props);
bindAll(this, 'switchMenu');
}
switchMenu(ev) {
if (ev) { ev.preventDefault(); }
this.context.uistate.nextSidebarState();
}
render() {
return (