blob: cf37b96a60f72a80777d2f3e102d328884b00a61 (
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
import { observer } from 'mobx-react-lite';
import Loading from '../Loading';
import { useRootStore } from '../RootStoreProvider';
import RelationGrid from './RelationGrid';
function TablePane(): JSX.Element {
const { editorStore } = useRootStore();
if (editorStore === undefined) {
return <Loading />;
}
return <RelationGrid graph={editorStore.graph} />;
}
export default observer(TablePane);
|