decord/source/modules/application_commands/native/ContextMenuCommandAppScreen.tsx

46 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 16967
// Function ID: 16968
2026-07-20 16:05:17 +00:00
// Name: ContextMenuCommandAppScreen
// Dependencies: [19, 21, 4605, 576, 7033, 7101, 16966, 7107, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 16967 (ContextMenuCommandAppScreen)
import nativeDefault from "native" /* 576 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const jsx = fn(21).jsx;
const createStyles = fn(4605);
const obj2 = { list: { marginHorizontal: nativeDefault.space.PX_16 } };
let closure_4 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/application_commands/native/ContextMenuCommandAppScreen.tsx");
2026-07-20 16:05:17 +00:00
export default function ContextMenuCommandAppScreen(route) {
const params = route.route.params;
let section = params.section;
2026-07-20 16:05:17 +00:00
const commands = params.commands;
const onPressCommand = params.onPressCommand;
2026-07-23 10:11:24 +00:00
let items = [commands.length];
2026-07-20 16:05:17 +00:00
const items1 = [commands, onPressCommand, section];
2026-07-23 10:11:24 +00:00
const memo = onPressCommand.useMemo(() => {
2026-07-20 16:05:17 +00:00
const items = [commands.length];
return items;
}, items);
2026-07-23 10:11:24 +00:00
const callback = onPressCommand.useCallback((arg0, arg1) => {
section = tmp;
2026-07-20 16:05:17 +00:00
const diff = commands.length - 1;
return jsx(section(commands[6]), {
2026-07-20 16:05:17 +00:00
item: commands[arg1],
onPress() {
return onPressCommand(closure_0);
2026-07-20 16:05:17 +00:00
},
section,
2026-07-20 16:05:17 +00:00
start: 0 === arg1,
end: arg1 === diff
}, commands[arg1].id);
}, items1);
2026-07-23 10:11:24 +00:00
const tmp = section(commands[5])();
const tmp4 = closure_4();
return jsx(section(commands[7]), { style: closure_4().list, sections: memo, estimatedListSize: "windowSize", itemSize: tmp, insetEnd: section(commands[4])({ includeKeyboardHeight: true }).insets.bottom, renderItem: callback });
2026-07-20 16:05:17 +00:00
};