diff options
Diffstat (limited to 'subprojects/frontend/src/table/TablePane.tsx')
-rw-r--r-- | subprojects/frontend/src/table/TablePane.tsx | 27 |
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 | |||
7 | import Stack from '@mui/material/Stack'; | ||
8 | import { Suspense, lazy } from 'react'; | ||
9 | |||
10 | import Loading from '../Loading'; | ||
11 | import type GraphStore from '../graph/GraphStore'; | ||
12 | |||
13 | const TableArea = lazy(() => import('./TableArea')); | ||
14 | |||
15 | export 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 | } | ||