71 lines
2.9 KiB
TypeScript
71 lines
2.9 KiB
TypeScript
// Module ID: 12222
|
|
// Function ID: 12223
|
|
// Name: ScheduledMessageCardActionButtons
|
|
// Dependencies: [21, 1114, 4505, 12215, 10255, 4523, 6616, 8671, 8097, 8678, 2]
|
|
// Exports: default
|
|
|
|
// Module 12222 (ScheduledMessageCardActionButtons)
|
|
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 */;
|
|
|
|
const jsx = jsxProd.jsx;
|
|
const result = set.fileFinishedImporting("modules/scheduled_messages/native/ScheduledMessageCardActionButtons.tsx");
|
|
|
|
export default function ScheduledMessageCardActionButtons(arg0) {
|
|
({ scheduledMessage: require, isPendingRemoval: importDefault } = arg0);
|
|
let obj = { label: null, IconComponent: null, action: null };
|
|
let intl = getSystemLocale.intl;
|
|
obj[0] = intl.string(getSystemLocale.t.JLba51);
|
|
obj[1] = SendMessageIcon.SendMessageIcon;
|
|
obj[2] = function action() {
|
|
return closure_1_0(closure_1_2[3]).sendScheduledMessageNow(closure_0.scheduledMessageId);
|
|
};
|
|
const items = [obj, , , ];
|
|
obj = { label: null, IconComponent: null, action: null };
|
|
const intl2 = getSystemLocale.intl;
|
|
obj[0] = intl2.string(getSystemLocale.t.ZXE1s4);
|
|
obj[1] = PencilIcon.PencilIcon;
|
|
obj[2] = function action() {
|
|
return closure_1_0(closure_1_2[3]).openScheduledMessageEditContentModal(closure_0);
|
|
};
|
|
items[1] = obj;
|
|
obj = { label: null, IconComponent: null, action: null };
|
|
const intl3 = getSystemLocale.intl;
|
|
obj[0] = intl3.string(getSystemLocale.t.SBcdAN);
|
|
obj[1] = ClockIcon.ClockIcon;
|
|
obj[2] = function action() {
|
|
return closure_1_0(closure_1_2[3]).openRescheduleMessageActionSheet(closure_0.scheduledMessageId, closure_0.sendAtTimestamp, closure_0.createArgs.channelId);
|
|
};
|
|
items[2] = obj;
|
|
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, {
|
|
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";
|
|
const intl = closure_1_0(closure_1_2[1]).intl;
|
|
obj.accessibilityLabel = intl.string(closure_1_0(closure_1_2[1]).t.sHmiIC);
|
|
obj.size = "sm";
|
|
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);
|
|
}
|
|
});
|
|
};
|