decord/source/modules/scheduled_messages/native/ScheduledMessageCardActionButtons.tsx

72 lines
2.9 KiB
TypeScript
Raw Normal View History

// Module ID: 12222
// Function ID: 12223
2026-08-25 06:04:03 +00:00
// Name: ScheduledMessageCardActionButtons
// Dependencies: [21, 1114, 4505, 12215, 10255, 4523, 6616, 8671, 8097, 8678, 2]
2026-08-25 06:04:03 +00:00
// Exports: default
// Module 12222 (ScheduledMessageCardActionButtons)
2026-08-25 06:04:03 +00:00
import set from "set" /* 2 */;
import jsxProd from "jsxProd" /* 21 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import SendMessageIcon from "SendMessageIcon" /* 4505 */;
import ClockIcon from "ClockIcon" /* 4523 */;
import CircleXIcon from "CircleXIcon" /* 6616 */;
import ContextMenu from "ContextMenu" /* 8671 */;
import PencilIcon from "PencilIcon" /* 10255 */;
2026-08-25 06:04:03 +00:00
const jsx = jsxProd.jsx;
const result = set.fileFinishedImporting("modules/scheduled_messages/native/ScheduledMessageCardActionButtons.tsx");
2026-08-28 06:19:39 +00:00
export default function ScheduledMessageCardActionButtons(arg0) {
({ scheduledMessage: require, isPendingRemoval: importDefault } = arg0);
2026-08-25 06:04:03 +00:00
let obj = { label: null, IconComponent: null, action: null };
2026-08-28 06:19:39 +00:00
let intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t.JLba51);
obj[1] = SendMessageIcon.SendMessageIcon;
2026-08-25 06:04:03 +00:00
obj[2] = function action() {
2026-08-28 06:19:39 +00:00
return closure_1_0(closure_1_2[3]).sendScheduledMessageNow(closure_0.scheduledMessageId);
2026-08-25 06:04:03 +00:00
};
2026-08-28 06:19:39 +00:00
const items = [obj, , , ];
2026-08-25 06:04:03 +00:00
obj = { label: null, IconComponent: null, action: null };
2026-08-28 06:19:39 +00:00
const intl2 = getSystemLocale.intl;
obj[0] = intl2.string(getSystemLocale.t.ZXE1s4);
obj[1] = PencilIcon.PencilIcon;
2026-08-25 06:04:03 +00:00
obj[2] = function action() {
2026-08-28 06:19:39 +00:00
return closure_1_0(closure_1_2[3]).openScheduledMessageEditContentModal(closure_0);
2026-08-25 06:04:03 +00:00
};
items[1] = obj;
2026-08-28 06:19:39 +00:00
obj = { label: null, IconComponent: null, action: null };
const intl3 = getSystemLocale.intl;
obj[0] = intl3.string(getSystemLocale.t.SBcdAN);
obj[1] = ClockIcon.ClockIcon;
2026-08-25 06:04:03 +00:00
obj[2] = function action() {
2026-09-01 10:26:29 +00:00
return closure_1_0(closure_1_2[3]).openRescheduleMessageActionSheet(closure_0.scheduledMessageId, closure_0.sendAtTimestamp, closure_0.createArgs.channelId);
2026-08-25 06:04:03 +00:00
};
items[2] = obj;
2026-08-28 06:19:39 +00:00
obj1 = { label: null, IconComponent: null, action: null, variant: "destructive" };
const intl4 = getSystemLocale.intl;
obj1[0] = intl4.string(getSystemLocale.t.O3sL8F);
obj1[1] = CircleXIcon.CircleXIcon;
obj1[2] = function action() {
return closure_1_0(closure_1_2[3]).cancelScheduledMessage(closure_0.scheduledMessageId);
};
items[3] = obj1;
return jsx(ContextMenu.ContextMenu, {
2026-08-25 06:04:03 +00:00
items,
keyboardShouldPersistTaps: "handled",
triggerOnTap: true,
children(ref) {
const merged = Object.assign(ref, Object.create(null));
const obj = { ref: ref.ref };
const merged1 = Object.assign(merged);
obj.variant = "secondary";
2026-08-28 06:19:39 +00:00
const intl = closure_1_0(closure_1_2[1]).intl;
obj.accessibilityLabel = intl.string(closure_1_0(closure_1_2[1]).t.sHmiIC);
2026-08-25 06:04:03 +00:00
obj.size = "sm";
2026-08-28 06:19:39 +00:00
obj.disabled = closure_1;
obj.icon = closure_1_1(closure_1_2[9]);
return closure_1_3(closure_1_0(closure_1_2[8]).IconButton, obj);
2026-08-25 06:04:03 +00:00
}
});
};