From f34cb4be17d95a12ea05f0a3e34b7c8bd69b701b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?= <43837214+Minsiki@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:22:07 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EB=A1=9C=20=EA=B0=9C=EB=B0=9C?= =?UTF-8?q?=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/circuitTrestleAtom.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/store/circuitTrestleAtom.js diff --git a/src/store/circuitTrestleAtom.js b/src/store/circuitTrestleAtom.js new file mode 100644 index 00000000..bac7ee7a --- /dev/null +++ b/src/store/circuitTrestleAtom.js @@ -0,0 +1,17 @@ +import { atom } from 'recoil' + +export const makerState = atom({ + key: 'makerState', + default: { makers: [], selectedMaker: null }, + dangerouslyAllowMutability: true, +}) + +export const seriesState = atom({ + key: 'seriesState', + default: { series: [], selectedSeries: [] }, +}) + +export const modelState = atom({ + key: 'modelState', + default: { models: [], selectedModels: [] }, +})