aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/table/TableArea.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/table/TableArea.tsx')
-rw-r--r--subprojects/frontend/src/table/TableArea.tsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/subprojects/frontend/src/table/TableArea.tsx b/subprojects/frontend/src/table/TableArea.tsx
new file mode 100644
index 00000000..cf37b96a
--- /dev/null
+++ b/subprojects/frontend/src/table/TableArea.tsx
@@ -0,0 +1,24 @@
1/*
2 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
3 *
4 * SPDX-License-Identifier: EPL-2.0
5 */
6
7import { observer } from 'mobx-react-lite';
8
9import Loading from '../Loading';
10import { useRootStore } from '../RootStoreProvider';
11
12import RelationGrid from './RelationGrid';
13
14function TablePane(): JSX.Element {
15 const { editorStore } = useRootStore();
16
17 if (editorStore === undefined) {
18 return <Loading />;
19 }
20
21 return <RelationGrid graph={editorStore.graph} />;
22}
23
24export default observer(TablePane);