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

63 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9837
// Function ID: 9838
2026-07-20 16:05:17 +00:00
// Name: useShowUnlinkChannelAlert
2026-08-25 06:04:03 +00:00
// Dependencies: [5, 19, 8167, 4745, 1236, 4833, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9837 (useShowUnlinkChannelAlert)
2026-08-24 06:08:38 +00:00
import closure_3 from "asyncGeneratorStep" /* 5 */;
import closure_4 from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/integration_settings/native/useShowUnlinkChannelAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function useShowUnlinkChannelAlert(arg0, arg1, arg2) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
2026-07-20 16:05:17 +00:00
const items = [arg0, arg2];
2026-07-29 08:29:29 +00:00
callback = React.useCallback(callback(function*() {
2026-08-24 06:08:38 +00:00
closure_0 = tmp3;
c3 = 1;
yield v0(closure_1_2[2]).removeLinkedLobby(closure_1_0);
2026-08-04 21:03:28 +00:00
if (1 === tmp7) {
c3 = 0;
2026-08-24 06:08:38 +00:00
obj1 = v0(closure_1_2[3]);
2026-08-04 21:03:28 +00:00
const obj2 = { title: null, body: null };
2026-08-24 06:08:38 +00:00
const intl = closure_1_0(closure_1_2[4]).intl;
obj2[0] = intl.string(closure_1_0(closure_1_2[4]).t.vFzPFj);
const intl2 = closure_1_0(closure_1_2[4]).intl;
obj2[1] = intl2.string(closure_1_0(closure_1_2[4]).t["6D5WVg"]);
2026-08-04 21:03:28 +00:00
obj1.show(obj2);
2026-08-24 06:08:38 +00:00
c4 = 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 (callback != null) {
callback();
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
c3 = 0;
return arg1;
2026-07-29 08:29:29 +00:00
}), items);
2026-07-20 16:05:17 +00:00
const items1 = [arg1, callback];
return React.useCallback(() => {
2026-08-25 06:04:03 +00:00
let obj = callback2(4745);
2026-07-29 08:29:29 +00:00
obj = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, confirmColor: null };
const intl = callback(1236).intl;
obj[0] = intl.string(callback(1236).t.JmUENg);
const intl2 = callback(1236).intl;
2026-07-23 10:11:24 +00:00
obj = { applicationName: callback2 };
2026-07-29 08:29:29 +00:00
obj[1] = intl2.format(callback(1236).t["6l2osp"], obj);
const intl3 = callback(1236).intl;
obj[2] = intl3.string(callback(1236).t["ETE/oC"]);
const intl4 = callback(1236).intl;
obj[3] = intl4.string(callback(1236).t["cY+Oob"]);
obj[4] = callback;
2026-08-25 06:04:03 +00:00
obj[5] = callback2(4833).Colors.RED;
2026-07-20 16:05:17 +00:00
obj.show(obj);
}, items1);
};