UNPKG

@jbrowse/plugin-linear-genome-view

Version:

JBrowse 2 linear genome view

20 lines (19 loc) 760 B
import { jsx as _jsx } from "react/jsx-runtime"; import { lazy } from 'react'; import { LoadingEllipses } from '@jbrowse/core/ui'; import { observer } from 'mobx-react'; import LinearGenomeViewContainer from "./LinearGenomeViewContainer.js"; const ImportForm = lazy(() => import("./ImportForm.js")); const LinearGenomeView = observer(function LinearGenomeView({ model, }) { const { showLoading, showImportForm, loadingMessage } = model; if (showLoading) { return _jsx(LoadingEllipses, { variant: "h6", message: loadingMessage }); } else if (showImportForm) { return _jsx(ImportForm, { model: model }); } else { return _jsx(LinearGenomeViewContainer, { model: model }); } }); export default LinearGenomeView;