decord/alpha/source/modules/channel/ChannelMuteUtils.tsx

23 lines
822 B
TypeScript

// Module ID: 9296
// Function ID: 9297
// Name: ChannelMuteUtils
// Dependencies: [4314, 2]
// Exports: getMuteSettings
// Module 9296 (ChannelMuteUtils)
import _modDef4314 from "module_4314" /* 4314 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/channel/ChannelMuteUtils.tsx");
export const getMuteSettings = function getMuteSettings(selected_time_window) {
const mute_config = { selected_time_window, end_time: null };
let toISOStringResult = null;
if (selected_time_window > 0) {
const obj2 = _modDef4314();
toISOStringResult = _modDef4314().add(selected_time_window, "second").toISOString();
const addResult = _modDef4314().add(selected_time_window, "second");
}
mute_config.end_time = toISOStringResult;
return { muted: true, mute_config };
};