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
17 lines
254 B
TypeScript
17 lines
254 B
TypeScript
import { proxy } from 'valtio'
|
|
|
|
export enum TranscriptionStatus {
|
|
STARTING,
|
|
STARTED,
|
|
STOPPING,
|
|
STOPPED,
|
|
}
|
|
|
|
type State = {
|
|
status: TranscriptionStatus
|
|
}
|
|
|
|
export const transcriptionStore = proxy<State>({
|
|
status: TranscriptionStatus.STOPPED,
|
|
})
|