aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/table/TablePane.tsx
blob: 8b64021766d9abc5f61c503d151843a0b2931f9a (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
/*
 * 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';
import type GraphStore from '../graph/GraphStore';

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

export default function TablePane({
  graph,
}: {
  graph: GraphStore;
}): JSX.Element {
  return (
    <Stack direction="column" height="100%" overflow="auto" alignItems="center">
      <Suspense fallback={<Loading />}>
        <TableArea graph={graph} />
      </Suspense>
    </Stack>
  );
}