decord/source/design/components/Sheet/native/SimpleActionSheet.native.tsx

72 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7212
// Function ID: 7213
2026-07-20 16:05:17 +00:00
// Name: SimpleActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 7213, 6987, 7214, 7215, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 7212 (SimpleActionSheet)
import noopAll from "noop" /* 19 */;
import ActionSheet from "ActionSheet" /* 7213 */;
import ActionSheetRowIcon from "ActionSheetRowIcon" /* 7215 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
class SimpleActionSheet {
constructor(arg0) {
2026-07-23 10:11:24 +00:00
({ hideActionSheet, header, options } = global);
2026-07-29 08:29:29 +00:00
tmp2 = hideActionSheet;
tmp3 = closure_1;
2026-07-20 16:05:17 +00:00
tmp = jsxs;
2026-07-29 08:29:29 +00:00
tmp5Result1 = null != header;
if (tmp5Result1) {
tmp5 = jsx;
obj = { leading: null, title: null, subtitle: null, trailing: null };
({ icon: obj[0], title: obj[1], subtitle: obj[2] } = header);
tmp5Result = null;
2026-07-20 16:05:17 +00:00
if (null != header.onClose) {
2026-07-29 08:29:29 +00:00
obj = { onPress: null };
obj[0] = header.onClose;
tmp5Result = tmp5(require("ActionSheetCloseButton").ActionSheetCloseButton, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = tmp5Result;
tmp5Result1 = tmp5(require("RedesignBottomSheetTitleHeaderBase").BottomSheetTitleHeader, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1 = { children: null };
2026-07-20 16:05:17 +00:00
items = [, ];
2026-07-29 08:29:29 +00:00
items[0] = tmp5Result1;
2026-08-24 06:08:38 +00:00
obj2 = {
hasIcons: global.hasIcons,
children: options.map((arg0, arg1) => {
({ icon, IconComponent, onPress: closure_0 } = arg0);
({ label, isDestructive } = arg0);
if (null != icon) {
let obj = { source: null, IconComponent: null };
obj[0] = icon;
obj[1] = IconComponent;
const tmp = closure_1_2(closure_1_0(closure_1_1[5]).ActionSheetRow.Icon, obj);
}
obj = { icon: tmp, variant: null, label: null, onPress: null };
let str = "default";
if (isDestructive) {
str = "danger";
}
obj[1] = str;
obj[2] = label;
obj[3] = function onPress() {
closure_1_0();
callback();
};
return closure_1_2(closure_1_0(closure_1_1[5]).ActionSheetRow, obj, arg1);
})
};
2026-07-23 10:11:24 +00:00
items[1] = jsx(require("ActionSheetRowIcon").ActionSheetRow.Group, obj2);
2026-07-29 08:29:29 +00:00
obj1[0] = items;
return tmp(require("ActionSheet").ActionSheet, obj1);
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: obj1, jsxs: c3 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/components/Sheet/native/SimpleActionSheet.native.tsx");
2026-07-20 16:05:17 +00:00
export default SimpleActionSheet;
export { SimpleActionSheet };