decord/source/modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx
2026-07-29 08:29:29 +00:00

55 lines
1.8 KiB
TypeScript

// Module ID: 12423
// Function ID: 12424
// Name: VoicePanelSpoilerAlert
// Dependencies: [19, 21, 4533, 4533, 1236, 5105, 5001, 2]
// Exports: default
// Module 12423 (VoicePanelSpoilerAlert)
import "noop";
import jsxProd from "jsxProd";
let c3;
let c4;
const require = arg1;
({ jsx: c3, jsxs: c4 } = jsxProd);
const result = require("getAlertModalItemKey").fileFinishedImporting("modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx");
export default function VoicePanelSpoilerAlert(channelId) {
channelId = channelId.channelId;
let closure_1;
let obj = channelId(4533);
closure_1 = obj.useDismissModalCallback();
obj = { title: null, content: null, actions: null };
const intl = channelId(1236).intl;
obj[0] = intl.string(channelId(1236).t["q38/ae"]);
const intl2 = channelId(1236).intl;
obj[1] = intl2.string(channelId(1236).t["2fDWXK"]);
obj = { children: null };
const obj1 = {
variant: "primary",
onPress() {
callback(outer1_2[5]).spoilerAgree(channelId);
const obj = callback(outer1_2[5]);
const voiceChannel = callback(outer1_2[6]).selectVoiceChannel(channelId);
callback();
},
text: null
};
const intl3 = channelId(1236).intl;
obj1[2] = intl3.string(channelId(1236).t.p89ACt);
const items = [callback(channelId(4533).AlertActionButton, obj1, "confirm"), ];
const obj2 = {
variant: "secondary",
onPress() {
callback();
},
text: null
};
const intl4 = channelId(1236).intl;
obj2[2] = intl4.string(channelId(1236).t["/g10LC"]);
items[1] = callback(channelId(4533).AlertActionButton, obj2, "cancel");
obj[0] = items;
obj[2] = callback2(channelId(4533).AlertActions, obj);
return callback(channelId(4533).AlertModal, obj);
};
export const VOICE_PANEL_SPOILER_KEY = "voice-panel-spoiler";