decord/source/design/components/Menu/native/MenuGroup.tsx

47 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 14217
// Function ID: 14218
2026-07-20 16:05:17 +00:00
// Name: MenuGroup
// Dependencies: [19, 17, 21, 4636, 576, 2]
2026-07-23 10:11:24 +00:00
// Module 14217 (MenuGroup)
import nativeDefault from "native" /* 576 */;
import noop from "module_19" /* 19 */;
2026-07-20 16:05:17 +00:00
get_ActivityIndicator = fn(17);
2026-07-23 10:11:24 +00:00
({ StyleSheet, View: closure_1 } = get_ActivityIndicator);
const jsxProd = fn(21);
({ jsx: c2, jsxs: c3 } = jsxProd);
const createStyles = fn(4636);
let obj = { divider: { marginLeft: 0, height: StyleSheet.hairlineWidth, backgroundColor: nativeDefault.colors.BORDER_SUBTLE, marginTop: -1 * StyleSheet.hairlineWidth } };
let closure_4 = createStyles.createStyles(obj);
const obj3 = { marginLeft: 0, height: StyleSheet.hairlineWidth, backgroundColor: nativeDefault.colors.BORDER_SUBTLE, marginTop: -1 * StyleSheet.hairlineWidth };
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Menu/native/MenuGroup.tsx");
export const MenuGroup = noop.forwardRef((arg0, ref) => {
noop = ref;
2026-07-20 16:05:17 +00:00
({ style, children } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style, children: null };
let tmp4 = null === ref;
2026-07-29 08:29:29 +00:00
if (tmp4) {
let obj2 = { style: tmp.divider };
tmp4 = closure_2(tmp3, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items = [tmp4, ];
const Children = noop.Children;
items[1] = Children.map(children, (icon, arg1) => {
2026-07-20 16:05:17 +00:00
let cloneElementResult = icon;
2026-07-23 10:11:24 +00:00
if (0 === arg1) {
2026-07-20 16:05:17 +00:00
cloneElementResult = icon;
if (noop.isValidElement(icon)) {
const obj2 = { ref };
cloneElementResult = obj.cloneElement(icon, obj2);
2026-07-20 16:05:17 +00:00
}
obj = noop;
2026-07-20 16:05:17 +00:00
}
return cloneElementResult;
});
obj.children = items;
2026-07-20 16:05:17 +00:00
return closure_3(closure_1, obj);
});