feat : add progress bar

This commit is contained in:
GuillaumeSD
2024-03-08 23:56:29 +01:00
parent 91b56fde60
commit 81cbc2ca80
7 changed files with 72 additions and 27 deletions

View File

@@ -3,8 +3,13 @@ import { Grid, Typography } from "@mui/material";
import GamePanel from "./gamePanel";
import LoadGame from "./loadGame";
import AnalyzeButton from "./analyzeButton";
import LinearProgressBar from "@/components/LinearProgressBar";
import { useAtomValue } from "jotai";
import { evaluationProgressAtom } from "../states";
export default function ReviewPanelHeader() {
const evaluationProgress = useAtomValue(evaluationProgressAtom);
return (
<Grid
item
@@ -36,11 +41,12 @@ export default function ReviewPanelHeader() {
justifyContent="center"
alignItems="center"
rowGap={3}
columnGap={15}
columnGap={12}
>
<GamePanel />
<LoadGame />
<AnalyzeButton />
<LinearProgressBar value={evaluationProgress} label="Analyzing..." />
</Grid>
</Grid>
);