From 402df3cb396a3dc857e5ea6fad7c26311abef25c Mon Sep 17 00:00:00 2001 From: ktmihs Date: Fri, 25 Nov 2022 17:33:51 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#85=20=EB=94=94=EB=B0=94=EC=9D=B4?= =?UTF-8?q?=EC=8A=A4=20atom=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 권한 atom, 종류 atom 생성 - devicePermissionState, devicesState --- frontend/src/store/atom/deviceSetting.ts | 16 ++++++++++++++++ frontend/src/types/types.ts | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 frontend/src/store/atom/deviceSetting.ts diff --git a/frontend/src/store/atom/deviceSetting.ts b/frontend/src/store/atom/deviceSetting.ts new file mode 100644 index 0000000..268f813 --- /dev/null +++ b/frontend/src/store/atom/deviceSetting.ts @@ -0,0 +1,16 @@ +import { atom } from 'recoil'; +import { stringObjectType } from '../../types/types'; + +export const devicePermissionState = atom({ + key: 'devicePermissionState', + default: false, +}); + +export const devicesState = atom({ + key: 'devicesState', + default: { + speaker: 'default', + audio: 'default', + video: 'default', + }, +}); diff --git a/frontend/src/types/types.ts b/frontend/src/types/types.ts index f6ad562..42d6243 100644 --- a/frontend/src/types/types.ts +++ b/frontend/src/types/types.ts @@ -1,3 +1,7 @@ export type childrenType = { children: JSX.Element | JSX.Element[]; }; + +export type stringObjectType = { + [key: string]: string; +};