globalbridge-lsf-custom
Version:
GlobalBridge in-house labeling tool, originating from LSF.
32 lines (27 loc) • 1.04 kB
JavaScript
import { observer } from 'mobx-react';
import { Block, Elem } from '../../utils/bem';
import { Actions } from './Actions';
import { Controls } from './Controls';
import './BottomBar.styl';
// import { FF_DEV_3873, isFF } from '../../utils/feature-flags';
const isNewUIEnabled = true;
export const BottomBar = observer(({ store }) => {
const annotationStore = store.annotationStore;
const entity = annotationStore?.selected;
const isPrediction = entity?.type === 'prediction';
const isViewAll = annotationStore?.viewingAll === true;
return store && !isViewAll ? (
<Block name="bottombar" style={{ borderTop: isNewUIEnabled && '1px solid rgba(0,0,0,0.1)' }}>
<Elem name="group">
<Actions store={store}/>
</Elem>
<Elem name="group">
{store.hasInterface('controls') && (store.hasInterface('review') || !isPrediction) && (
<Elem name="section" mod={{ flat: true }}>
<Controls annotation={entity} />
</Elem>
)}
</Elem>
</Block>
) : null;
});