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

53 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 12354
// Function ID: 96054
2026-07-20 16:05:17 +00:00
// Name: VoicePanelSpoilerAlert
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 33, 4475, 4475, 1212, 5048, 4944, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 12354 (VoicePanelSpoilerAlert)
import "result";
import jsxProd from "jsxProd";
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
const result = require("getAlertModalItemKey").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;
let obj = channelId(4475);
2026-07-20 16:05:17 +00:00
let closure_1 = obj.useDismissModalCallback();
obj = {};
2026-07-23 10:11:24 +00:00
const intl = channelId(1212).intl;
obj.title = intl.string(channelId(1212).t["q38/ae"]);
const intl2 = channelId(1212).intl;
obj.content = intl2.string(channelId(1212).t["2fDWXK"]);
2026-07-20 16:05:17 +00:00
obj = {};
const obj1 = {
variant: "primary",
onPress() {
2026-07-23 10:11:24 +00:00
callback(outer1_2[5]).spoilerAgree(channelId);
const obj = callback(outer1_2[5]);
const voiceChannel = callback(outer1_2[6]).selectVoiceChannel(channelId);
2026-07-20 16:05:17 +00:00
callback();
}
};
2026-07-23 10:11:24 +00:00
const intl3 = channelId(1212).intl;
obj1.text = intl3.string(channelId(1212).t.p89ACt);
const items = [callback(channelId(4475).AlertActionButton, obj1, "confirm"), ];
2026-07-20 16:05:17 +00:00
const obj2 = {
variant: "secondary",
onPress() {
callback();
}
};
2026-07-23 10:11:24 +00:00
const intl4 = channelId(1212).intl;
obj2.text = intl4.string(channelId(1212).t["/g10LC"]);
items[1] = callback(channelId(4475).AlertActionButton, obj2, "cancel");
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-23 10:11:24 +00:00
obj.actions = callback2(channelId(4475).AlertActions, obj);
return callback(channelId(4475).AlertModal, obj);
2026-07-20 16:05:17 +00:00
};
export const VOICE_PANEL_SPOILER_KEY = "voice-panel-spoiler";