💩(frontend) introduce transcription store
Introduce a dedicated store for transcription to better manage its status independently of meeting recording status. This lays the groundwork for future improvements, especially as we plan to support additional recording options beyond the current setup. This isn't perfect and still coupled with room recording status
This commit is contained in:
committed by
aleb_the_flash
parent
91562d049c
commit
ac9ba0df62
16
src/frontend/src/stores/transcription.ts
Normal file
16
src/frontend/src/stores/transcription.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { proxy } from 'valtio'
|
||||
|
||||
export enum TranscriptionStatus {
|
||||
STARTING,
|
||||
STARTED,
|
||||
STOPPING,
|
||||
STOPPED,
|
||||
}
|
||||
|
||||
type State = {
|
||||
status: TranscriptionStatus
|
||||
}
|
||||
|
||||
export const transcriptionStore = proxy<State>({
|
||||
status: TranscriptionStatus.STOPPED,
|
||||
})
|
||||
Reference in New Issue
Block a user