/* cfb-editor (C) 2017-present SheetJS -- http://sheetjs.com */ import React, { Component } from 'react'; import { easyComp } from 'react-easy-state'; import { Link } from 'react-router-dom'; import { Icon } from 'react-fa'; import * as Spinner from 'react-spinkit'; import './ToolBar.css'; import store from '../state'; import Tooltip from '../components/Tooltip'; import DirtyBit from '../components/DirtyBit'; class ToolBar extends Component { constructor(props) { super(props); this.flipViz = this.flipViz.bind(this); this.force = this.force.bind(this); } flipViz() { this.props.flipViz(); this.forceUpdate(); } force() { this.forceUpdate(); } render() { return (
CFB Editor {store.getLoading() && ()}
{store.fname ? this.props.idx ? ( {`<${store.fname}>`} ) : `<${store.fname}>` : null}
{!store.isEmpty() && ( )} {!store.isEmpty() && ( )}
); } } // {this.props.idx && `>> ${store.getFixedPath(this.props.idx)}`} export default easyComp(ToolBar);