Download mobile/src/stores/debug.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/stores/debug.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/src/stores/debug.ts
-
curl -L -o debug.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/src/stores/debug.ts
630 Bytes
| // debug store for storing debug values only! | |
| import {create} from "zustand" | |
| import {subscribeWithSelector} from "zustand/middleware" | |
| interface DebugStatus { | |
| micDataRecvd: boolean | |
| } | |
| interface DebugState extends DebugStatus { | |
| setDebugInfo: (info: Partial<DebugStatus>) => void | |
| reset: () => void | |
| } | |
| const initialState: DebugStatus = { | |
| // state: | |
| micDataRecvd: false, | |
| } | |
| export const useDebugStore = create<DebugState>()( | |
| subscribeWithSelector((set) => ({ | |
| ...initialState, | |
| setDebugInfo: (info) => set((state) => ({...state, ...info})), | |
| reset: () => set(initialState), | |
| })), | |
| ) | |