Open source video conferencing app powered by LiveKit. Built with Django and React.
✨(frontend) add global store for browser permissions monitoring
lebaudantoine95190ec69016
diff --git a/src/frontend/src/stores/permissions.ts b/src/frontend/src/stores/permissions.tsnew file mode 100644index 00000000..1f1f79d6--- /dev/null+++ b/src/frontend/src/stores/permissions.ts@@ -0,0 +1,18 @@+import { proxy } from 'valtio'++type PermissionState =+ | undefined+ | 'granted'+ | 'prompt'+ | 'denied'+ | 'unavailable'++type State = {+ cameraPermission: PermissionState+ microphonePermission: PermissionState+}++export const permissionsStore = proxy<State>({+ cameraPermission: undefined,+ microphonePermission: undefined,+})