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

24 lines
822 B
TypeScript
Raw Normal View History

// Module ID: 9064
// Function ID: 9065
// Name: ChannelMuteUtils
// Dependencies: [4153, 2]
// Exports: getMuteSettings
// Module 9064 (ChannelMuteUtils)
import _modDef4153 from "module_4153" /* 4153 */;
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 = _modDef4153();
toISOStringResult = _modDef4153().add(selected_time_window, "second").toISOString();
const addResult = _modDef4153().add(selected_time_window, "second");
}
mute_config.end_time = toISOStringResult;
return { muted: true, mute_config };
};