>(
new Set()
);
/** Selected time range. */
const [range90k, setRange90k] = useState<[number, number] | null>(null);
const [split90k, setSplit90k] = useState(DEFAULT_DURATION);
const [trimStartAndEnd, setTrimStartAndEnd] = useState(true);
const [timestampTrack, setTimestampTrack] = useState(false);
const [activeRecording, setActiveRecording] = useState<
[Stream, api.Recording] | null
>(null);
const formatTime = useMemo(() => {
return (time90k: number) => {
return format(
utcToZonedTime(new Date(time90k / 90), timeZoneName),
"d MMM yyyy HH:mm:ss"
);
};
}, [timeZoneName]);
let videoLists = [];
for (const s of selectedStreams) {
videoLists.push(
);
}
const closeModal = (event: {}, reason: string) => {
setActiveRecording(null);
};
const recordingsTable = (
);
return (
{videoLists.length > 0 && recordingsTable}
{activeRecording != null && (
)}
);
};
export default Main;