import React from 'react' import { ErrorMessage } from '@jbrowse/core/ui' import { ErrorBoundary } from '@jbrowse/core/ui/ErrorBoundary' import { Button, Typography } from '@mui/material' import { observer } from 'mobx-react' import MSAView from './MSAView.tsx' import ImportForm from './import/ImportForm.tsx' import type { MsaViewModel } from '../model.ts' function LoadingSpinner() { return (
Loading...
) } const Reset = observer(function ({ model, error, }: { model: MsaViewModel error: unknown }) { return (
) }) const Loading = observer(function ({ model }: { model: MsaViewModel }) { const { isLoading, dataInitialized, msaFilehandle, treeFilehandle } = model const hasPendingFilehandle = !!(msaFilehandle || treeFilehandle) return (
} > {dataInitialized ? ( isLoading ? ( ) : ( ) ) : hasPendingFilehandle || isLoading ? ( ) : ( )}
) }) export default Loading