/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors
*
* SPDX-License-Identifier: EPL-2.0
*/
import Box from '@mui/material/Box';
import Skeleton from '@mui/material/Skeleton';
import Stack from '@mui/material/Stack';
import Toolbar from '@mui/material/Toolbar';
import { observer } from 'mobx-react-lite';
import { useState } from 'react';
import { useRootStore } from '../RootStoreProvider';
import AnalysisErrorNotification from './AnalysisErrorNotification';
import ConnectionStatusNotification from './ConnectionStatusNotification';
import EditorArea from './EditorArea';
import EditorButtons from './EditorButtons';
import SearchPanelPortal from './SearchPanelPortal';
function EditorLoading(): JSX.Element {
const [skeletonSizes] = useState(() =>
new Array(10).fill(0).map(() => Math.random() * 60 + 10),
);
return (
{skeletonSizes.map((length, i) => (
/* eslint-disable-next-line react/no-array-index-key --
Random placeholders have no identity.
*/
))}
);
}
export default observer(function EditorPane(): JSX.Element {
const { editorStore } = useRootStore();
return (
{editorStore === undefined ? (
) : (
<>
>
)}
);
});