mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +02:00
Squashed 'ai-context/workbench-ui/' content from commit 32e36a5c
git-subtree-dir: ai-context/workbench-ui git-subtree-split: 32e36a5c2131e429a7081cfaf67dabad3193cda3
This commit is contained in:
commit
a8390532f7
310 changed files with 56430 additions and 0 deletions
28
src/components/common/CenterSpinner.tsx
Normal file
28
src/components/common/CenterSpinner.tsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import React from "react";
|
||||
|
||||
import { Box, Spinner } from "@chakra-ui/react";
|
||||
|
||||
import { useProgressStateStore } from "@trustgraph/react-state";
|
||||
|
||||
const CenterSpinner: React.FC = () => {
|
||||
const activity = useProgressStateStore((state) => state.activity);
|
||||
|
||||
if (activity.size < 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Box
|
||||
position="absolute"
|
||||
top="calc(50% - 3rem)"
|
||||
left="calc(50% - 3rem)"
|
||||
zIndex="999"
|
||||
margin="0"
|
||||
padding="0"
|
||||
>
|
||||
<Spinner size="xl" />
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default CenterSpinner;
|
||||
Loading…
Add table
Add a link
Reference in a new issue