80 lines
2.7 KiB
TypeScript
80 lines
2.7 KiB
TypeScript
// Module ID: 9904
|
|
// Function ID: 9905
|
|
// Name: StickerOptionsActionSheet
|
|
// Dependencies: [19, 21, 558, 576, 6611, 4530, 4801, 4776, 1127, 6624, 5997, 5916, 2]
|
|
|
|
// Module 9904 (StickerOptionsActionSheet)
|
|
import Fragment from "Fragment" /* 21 */;
|
|
import ToastUtils from "ToastUtils" /* 4530 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4801 */;
|
|
import ClipboardUtils from "ClipboardUtils" /* 6611 */;
|
|
import react from "react" /* 19 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let stickerUrl;
|
|
|
|
const jsx = Fragment.jsx;
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((stickerUrl) => {
|
|
let tmp10;
|
|
let tmp4;
|
|
let obj = stickerUrl(576);
|
|
const cResult = obj.c(6);
|
|
stickerUrl = stickerUrl.stickerUrl;
|
|
if (cResult[0] !== stickerUrl) {
|
|
const fn = function t() {
|
|
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")) {
|
|
const tmp8 = jsx(stickerUrl(4776).LinkIcon, {});
|
|
const intl = tmp(1127).intl;
|
|
const stringResult = intl.string(stickerUrl(1127).t.B1ubHx);
|
|
cResult[2] = tmp8;
|
|
cResult[3] = stringResult;
|
|
}
|
|
if (cResult[4] !== tmp4) {
|
|
const ActionSheet = tmp(6624).ActionSheet;
|
|
let obj3 = { hasIcons: true, children: null };
|
|
const TableRowGroup = tmp(5997).TableRowGroup;
|
|
const tmp12 = <ActionSheet>{null}</ActionSheet>;
|
|
cResult[4] = tmp4;
|
|
cResult[5] = tmp12;
|
|
tmp10 = tmp12;
|
|
} else {
|
|
tmp10 = cResult[5];
|
|
}
|
|
return tmp10;
|
|
}) : ((stickerUrl) => {
|
|
let intl;
|
|
stickerUrl = stickerUrl.stickerUrl;
|
|
const items = [stickerUrl];
|
|
const callback = react.useCallback(() => {
|
|
const obj = ClipboardUtils;
|
|
obj.copy(stickerUrl);
|
|
const obj2 = ToastUtils;
|
|
const result = obj2.presentCopiedToClipboard();
|
|
const obj3 = ActionSheetActionCreatorsDefault;
|
|
obj3.hideActionSheet();
|
|
}, items);
|
|
const ActionSheet = stickerUrl(6624).ActionSheet;
|
|
let obj2 = { hasIcons: true, children: null };
|
|
const TableRowGroup = stickerUrl(5997).TableRowGroup;
|
|
let obj3 = { icon: null, label: intl.string(stickerUrl(1127).t.B1ubHx), onPress: callback };
|
|
const TableRow = stickerUrl(5916).TableRow;
|
|
intl = stickerUrl(1127).intl;
|
|
return <ActionSheet>{null}</ActionSheet>;
|
|
});
|
|
let result = size.fileFinishedImporting("modules/stickers/native/StickerOptionsActionSheet.tsx");
|
|
|
|
export default tmp2;
|