32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// Metro module 11052 (f11053).
|
|
import { AutomodActionType, SUBMIT_FEEDBACK_MODAL_KEY } from "./Constants";
|
|
import ModalActionCreators from "../../actions/ModalActionCreators";
|
|
import AlertActionCreators from "../../actions/native/AlertActionCreators";
|
|
export function getPromiseableActionHandlers() {
|
|
const r1 = {};
|
|
r1[AutomodActionType.BLOCK_MESSAGE] = null;
|
|
r1[AutomodActionType.FLAG_TO_CHANNEL] = null;
|
|
r1[AutomodActionType.USER_COMMUNICATION_DISABLED] = null;
|
|
return r1;
|
|
}
|
|
export function openSubmitFeedback(a0, a1, a2, a3) {
|
|
ModalActionCreators.pushLazy(import("./native/AutomodSubmitFeedbackModal"), {
|
|
onCloseModal: function onCloseModal() {
|
|
ModalActionCreators.popWithKey(SUBMIT_FEEDBACK_MODAL_KEY);
|
|
},
|
|
automodDecision: {
|
|
messageId: a0,
|
|
messageContent: a1,
|
|
decisionId: a2,
|
|
channel: a3
|
|
}
|
|
}, SUBMIT_FEEDBACK_MODAL_KEY);
|
|
}
|
|
export function openRaidResolveModal() {}
|
|
export function openConfirmRemoveMentionRaid() {}
|
|
export function openAutomodProfileQuarantineAlert(guildId) {
|
|
AlertActionCreators.openLazy({
|
|
importer: () => import("./native/AutomodUserProfileQuarantineAlert").then(({ default: Component }) => (a0) => <Component {...a0} guildId={guildId} />)
|
|
});
|
|
}
|