decord/source/modules/integration_settings/native/useShowUnlinkChannelAlert.tsx

61 lines
2.1 KiB
TypeScript
Raw Normal View History

// Module ID: 11083
// Function ID: 11084
2026-07-20 16:05:17 +00:00
// Name: useShowUnlinkChannelAlert
// Dependencies: [5, 19, 8760, 4983, 1115, 5079, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11083 (useShowUnlinkChannelAlert)
import util from "util" /* 1115 */;
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4983 */;
import common_AlertDefault from "common/Alert" /* 5079 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/integration_settings/native/useShowUnlinkChannelAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function useShowUnlinkChannelAlert(arg0, applicationName, arg2) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_2 = arg2;
2026-07-20 16:05:17 +00:00
const items = [arg0, arg2];
onConfirm = noop.useCallback(onConfirm(function*() {
yield v2(tmp23[2]).removeLinkedLobby(tmp3);
2026-08-04 21:03:28 +00:00
if (1 === tmp7) {
c3 = 0;
const obj7 = { title: null, body: null };
const intl = tmp3(tmp23[4]).intl;
obj7.title = intl.string(tmp3(tmp23[4]).t.vFzPFj);
const intl2 = tmp3(tmp23[4]).intl;
obj7.body = intl2.string(tmp3(tmp23[4]).t["6D5WVg"]);
v2(tmp23[3]).show(obj7);
2026-08-24 06:08:38 +00:00
c4 = 3;
v2(tmp23[3]);
2026-08-04 21:03:28 +00:00
} else if (arg0 === 1) {
2026-07-29 08:29:29 +00:00
c4 = 3;
2026-08-04 21:03:28 +00:00
throw arg1;
} else if (arg0 !== 2) {
if (closure_128_2 != null) {
closure_128_2();
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
c3 = 0;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
return arg1;
2026-07-29 08:29:29 +00:00
}), items);
const items1 = [applicationName, onConfirm];
return noop.useCallback(() => {
const obj2 = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, confirmColor: null };
const intl = util.intl;
obj2.title = intl.string(util.t.JmUENg);
const intl2 = util.intl;
obj2.body = intl2.format(util.t["6l2osp"], { applicationName });
const intl3 = util.intl;
obj2.cancelText = intl3.string(util.t["ETE/oC"]);
const intl4 = util.intl;
obj2.confirmText = intl4.string(util.t["cY+Oob"]);
obj2.onConfirm = onConfirm;
obj2.confirmColor = common_AlertDefault.Colors.RED;
actions_AlertActionCreatorsDefault.show(obj2);
2026-07-20 16:05:17 +00:00
}, items1);
};