refacto : global refacto
This commit is contained in:
7
src/sections/analysis/states.ts
Normal file
7
src/sections/analysis/states.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { GameEval } from "@/types/eval";
|
||||
import { Chess } from "chess.js";
|
||||
import { atom } from "jotai";
|
||||
|
||||
export const gameEvalAtom = atom<GameEval | undefined>(undefined);
|
||||
export const gameAtom = atom(new Chess());
|
||||
export const boardAtom = atom(new Chess());
|
||||
Reference in New Issue
Block a user