aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/GraphPane.tsx
blob: f04b9931e56452acbc5393738f99e3ef74f48231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */

import Stack from '@mui/material/Stack';
import { Suspense, lazy } from 'react';

import Loading from '../Loading';

const GraphArea = lazy(() => import('./GraphArea'));

export default function GraphPane(): JSX.Element {
  return (
    <Stack
      direction="column"
      height="100%"
      overflow="auto"
      alignItems="center"
      justifyContent="center"
    >
      <Suspense fallback={<Loading />}>
        <GraphArea />
      </Suspense>
    </Stack>
  );
}