62 lines
2 KiB
TypeScript
62 lines
2 KiB
TypeScript
// Module ID: 10939
|
|
// Function ID: 10940
|
|
// Name: useShowUnlinkChannelAlert
|
|
// Dependencies: [5, 19, 8630, 4905, 1114, 4994, 2]
|
|
// Exports: default
|
|
|
|
// Module 10939 (useShowUnlinkChannelAlert)
|
|
import closure_3 from "asyncGeneratorStep" /* 5 */;
|
|
import closure_4 from "noop" /* 19 */;
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/integration_settings/native/useShowUnlinkChannelAlert.tsx");
|
|
|
|
export default function useShowUnlinkChannelAlert(arg0, arg1, arg2) {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
closure_2 = arg2;
|
|
const items = [arg0, arg2];
|
|
callback = React.useCallback(callback(function*() {
|
|
closure_0 = tmp3;
|
|
c3 = 1;
|
|
yield v0(closure_1_2[2]).removeLinkedLobby(closure_1_0);
|
|
if (1 === tmp7) {
|
|
c3 = 0;
|
|
obj1 = v0(closure_1_2[3]);
|
|
const obj2 = { title: null, body: null };
|
|
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"]);
|
|
obj1.show(obj2);
|
|
c4 = 3;
|
|
} else if (arg0 === 1) {
|
|
c4 = 3;
|
|
throw arg1;
|
|
} else if (arg0 !== 2) {
|
|
if (callback != null) {
|
|
callback();
|
|
}
|
|
c3 = 0;
|
|
}
|
|
c3 = 0;
|
|
return arg1;
|
|
}), items);
|
|
const items1 = [arg1, callback];
|
|
return React.useCallback(() => {
|
|
let obj = callback2(4905);
|
|
obj = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, confirmColor: null };
|
|
const intl = callback(1114).intl;
|
|
obj[0] = intl.string(callback(1114).t.JmUENg);
|
|
const intl2 = callback(1114).intl;
|
|
obj = { applicationName: callback2 };
|
|
obj[1] = intl2.format(callback(1114).t["6l2osp"], obj);
|
|
const intl3 = callback(1114).intl;
|
|
obj[2] = intl3.string(callback(1114).t["ETE/oC"]);
|
|
const intl4 = callback(1114).intl;
|
|
obj[3] = intl4.string(callback(1114).t["cY+Oob"]);
|
|
obj[4] = callback;
|
|
obj[5] = callback2(4994).Colors.RED;
|
|
obj.show(obj);
|
|
}, items1);
|
|
};
|