decord/source/modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx

55 lines
1.8 KiB
TypeScript
Raw Normal View History

// Module ID: 12937
// Function ID: 12938
2026-07-20 16:05:17 +00:00
// Name: VoicePanelSpoilerAlert
// Dependencies: [19, 21, 4910, 4910, 1114, 5520, 5411, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12937 (VoicePanelSpoilerAlert)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function VoicePanelSpoilerAlert(channelId) {
2026-07-23 10:11:24 +00:00
channelId = channelId.channelId;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
let obj = channelId(4910);
2026-07-29 08:29:29 +00:00
closure_1 = obj.useDismissModalCallback();
obj = { title: null, content: null, actions: null };
const intl = channelId(1114).intl;
obj[0] = intl.string(channelId(1114).t["q38/ae"]);
const intl2 = channelId(1114).intl;
obj[1] = intl2.string(channelId(1114).t["2fDWXK"]);
2026-07-29 08:29:29 +00:00
obj = { children: null };
2026-08-24 06:08:38 +00:00
obj1 = {
2026-07-20 16:05:17 +00:00
variant: "primary",
onPress() {
2026-08-24 06:08:38 +00:00
callback(closure_1_2[5]).spoilerAgree(channelId);
const obj = callback(closure_1_2[5]);
const voiceChannel = callback(closure_1_2[6]).selectVoiceChannel(channelId);
2026-07-20 16:05:17 +00:00
callback();
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
const intl3 = channelId(1114).intl;
obj1[2] = intl3.string(channelId(1114).t.p89ACt);
const items = [callback(channelId(4910).AlertActionButton, obj1, "confirm"), ];
2026-07-20 16:05:17 +00:00
const obj2 = {
variant: "secondary",
onPress() {
callback();
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
const intl4 = channelId(1114).intl;
obj2[2] = intl4.string(channelId(1114).t["/g10LC"]);
items[1] = callback(channelId(4910).AlertActionButton, obj2, "cancel");
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj[2] = callback2(channelId(4910).AlertActions, obj);
return callback(channelId(4910).AlertModal, obj);
2026-07-20 16:05:17 +00:00
};
export const VOICE_PANEL_SPOILER_KEY = "voice-panel-spoiler";