aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/table/TablePane.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/table/TablePane.tsx')
-rw-r--r--subprojects/frontend/src/table/TablePane.tsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/subprojects/frontend/src/table/TablePane.tsx b/subprojects/frontend/src/table/TablePane.tsx
new file mode 100644
index 00000000..8b640217
--- /dev/null
+++ b/subprojects/frontend/src/table/TablePane.tsx
@@ -0,0 +1,27 @@
1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: EPL-2.0
5 */
6
7import Stack from '@mui/material/Stack';
8import { Suspense, lazy } from 'react';
9
10import Loading from '../Loading';
11import type GraphStore from '../graph/GraphStore';
12
13const TableArea = lazy(() => import('./TableArea'));
14
15export default function TablePane({
16 graph,
17}: {
18 graph: GraphStore;
19}): JSX.Element {
20 return (
21 <Stack direction="column" height="100%" overflow="auto" alignItems="center">
22 <Suspense fallback={<Loading />}>
23 <TableArea graph={graph} />
24 </Suspense>
25 </Stack>
26 );
27}