forked from boostcampwm-2022/web05-SleepyWoods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] boostcampwm-2022#85 디바이스 atom 생성
- 권한 atom, 종류 atom 생성 - devicePermissionState, devicesState
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { atom } from 'recoil'; | ||
import { stringObjectType } from '../../types/types'; | ||
|
||
export const devicePermissionState = atom<boolean>({ | ||
key: 'devicePermissionState', | ||
default: false, | ||
}); | ||
|
||
export const devicesState = atom<stringObjectType>({ | ||
key: 'devicesState', | ||
default: { | ||
speaker: 'default', | ||
audio: 'default', | ||
video: 'default', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
export type childrenType = { | ||
children: JSX.Element | JSX.Element[]; | ||
}; | ||
|
||
export type stringObjectType = { | ||
[key: string]: string; | ||
}; |