decord/alpha/source/modules/stickers/native/StickerOptionsActionSheet.tsx

79 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 9750
// Function ID: 9751
2026-07-20 16:05:17 +00:00
// Name: StickerOptionsActionSheet
2026-10-09 10:00:15 +00:00
// Dependencies: [19, 21, 558, 576, 6879, 4767, 5055, 5040, 1126, 6892, 6269, 6186, 2]
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 9750 (StickerOptionsActionSheet)
2026-10-03 08:58:59 +00:00
import Fragment from "Fragment" /* 21 */;
2026-10-09 10:00:15 +00:00
import ToastUtils from "ToastUtils" /* 4767 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 5055 */;
import ClipboardUtils from "ClipboardUtils" /* 6879 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const jsx = Fragment.jsx;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function StickerOptionsActionSheet(stickerUrl) {
2026-10-03 08:58:59 +00:00
let tmp10;
let tmp4;
let obj = stickerUrl(576);
const cResult = obj.c(6);
stickerUrl = stickerUrl.stickerUrl;
if (cResult[0] !== stickerUrl) {
2026-10-08 09:57:35 +00:00
const fn = function o() {
2026-10-03 08:58:59 +00:00
const obj = ClipboardUtils;
obj.copy(stickerUrl);
const obj2 = ToastUtils;
const result = obj2.presentCopiedToClipboard();
const obj3 = ActionSheetActionCreatorsDefault;
obj3.hideActionSheet();
};
cResult[0] = stickerUrl;
cResult[1] = fn;
tmp4 = fn;
} else {
tmp4 = cResult[1];
}
if (cResult[2] === Symbol.for("react.memo_cache_sentinel")) {
2026-10-09 10:00:15 +00:00
const tmp8 = jsx(stickerUrl(5040).LinkIcon, {});
2026-10-03 08:58:59 +00:00
const intl = tmp(1126).intl;
const stringResult = intl.string(stickerUrl(1126).t.B1ubHx);
cResult[2] = tmp8;
cResult[3] = stringResult;
}
if (cResult[4] !== tmp4) {
2026-10-09 10:00:15 +00:00
const ActionSheet = tmp(6892).ActionSheet;
2026-10-03 08:58:59 +00:00
let obj3 = { hasIcons: true, children: null };
2026-10-09 10:00:15 +00:00
const TableRowGroup = tmp(6269).TableRowGroup;
2026-10-03 08:58:59 +00:00
const tmp12 = <ActionSheet>{null}</ActionSheet>;
cResult[4] = tmp4;
cResult[5] = tmp12;
tmp10 = tmp12;
} else {
tmp10 = cResult[5];
}
return tmp10;
2026-10-08 09:57:35 +00:00
}) : (function StickerOptionsActionSheet(stickerUrl) {
2026-10-03 08:58:59 +00:00
let intl;
2026-07-20 16:05:17 +00:00
stickerUrl = stickerUrl.stickerUrl;
const items = [stickerUrl];
2026-10-03 08:58:59 +00:00
const callback = react.useCallback(() => {
const obj = ClipboardUtils;
obj.copy(stickerUrl);
const obj2 = ToastUtils;
const result = obj2.presentCopiedToClipboard();
const obj3 = ActionSheetActionCreatorsDefault;
obj3.hideActionSheet();
2026-07-20 16:05:17 +00:00
}, items);
2026-10-09 10:00:15 +00:00
const ActionSheet = stickerUrl(6892).ActionSheet;
let obj2 = { hasIcons: true, children: null };
2026-10-09 10:00:15 +00:00
const TableRowGroup = stickerUrl(6269).TableRowGroup;
2026-10-03 08:58:59 +00:00
let obj3 = { icon: null, label: intl.string(stickerUrl(1126).t.B1ubHx), onPress: callback };
2026-10-09 10:00:15 +00:00
const TableRow = stickerUrl(6186).TableRow;
2026-10-03 08:58:59 +00:00
intl = stickerUrl(1126).intl;
return <ActionSheet>{null}</ActionSheet>;
});
let result = size.fileFinishedImporting("modules/stickers/native/StickerOptionsActionSheet.tsx");
export default tmp2;