diff --git a/src/context/globalInfo.tsx b/src/context/globalInfo.tsx index e0efb678..7e7a3826 100644 --- a/src/context/globalInfo.tsx +++ b/src/context/globalInfo.tsx @@ -16,6 +16,8 @@ interface GlobalInfo { setRerenderRuns: (rerenderRuns: boolean) => void; recordingLength: number; setRecordingLength: (recordingLength: number) => void; + recordingId: string | null; + setRecordingId: (newId: string | null) => void; recordingName: string; setRecordingName: (recordingName: string) => void; }; @@ -29,6 +31,7 @@ class GlobalInfoStore implements Partial { message: '', isOpen: false, }; + recordingId = null; recordings: string[] = []; rerenderRuns = false; recordingName = ''; @@ -46,6 +49,7 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { const [recordings, setRecordings] = useState(globalInfoStore.recordings); const [rerenderRuns, setRerenderRuns] = useState(globalInfoStore.rerenderRuns); const [recordingLength, setRecordingLength] = useState(globalInfoStore.recordingLength); + const [recordingId, setRecordingId] = useState(globalInfoStore.recordingId); const [recordingName, setRecordingName] = useState(globalInfoStore.recordingName); const notify = (severity: 'error' | 'warning' | 'info' | 'success', message: string) => { @@ -79,6 +83,8 @@ export const GlobalInfoProvider = ({ children }: { children: JSX.Element }) => { setRerenderRuns, recordingLength, setRecordingLength, + recordingId, + setRecordingId, recordingName, setRecordingName }}