import React from 'react';
import ObjectExplorer from '../../craft/ui/ObjectExplorer';
import OperationHistory from '../../craft/ui/OperationHistory';
import Folder from 'ui/components/Folder';
import Fa from '../../../../../modules/ui/components/Fa';
import ls from './FloatView.less';
import cx from 'classnames';
export default class FloatView extends React.Component {
state = {
selected: null
};
render() {
return
{['project', 'history'].map(tabId => this.setState({selected: this.state.selected === tabId ? null : tabId})}>{getIcon(tabId)})}
{this.state.selected &&
{this.state.selected === 'project' && Model}>
}
{this.state.selected === 'history' && Modifications}>
}
}
;
}
}
function Tab({children, selected, onClick}) {
return {children}
;
}
function getIcon(id) {
if (id === 'history') {
return ;
} else if (id === 'project') {
return ;
}
}