diff options
Diffstat (limited to 'subprojects/frontend/src/table/TableArea.tsx')
-rw-r--r-- | subprojects/frontend/src/table/TableArea.tsx | 24 |
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 | |||
7 | import { observer } from 'mobx-react-lite'; | ||
8 | |||
9 | import Loading from '../Loading'; | ||
10 | import { useRootStore } from '../RootStoreProvider'; | ||
11 | |||
12 | import RelationGrid from './RelationGrid'; | ||
13 | |||
14 | function 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 | |||
24 | export default observer(TablePane); | ||