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

46 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15623
// Function ID: 120474
2026-07-20 16:05:17 +00:00
// Name: ContextMenuCommandAppScreen
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 33, 4131, 689, 5159, 8759, 15622, 9173, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 15623 (ContextMenuCommandAppScreen)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { marginHorizontal: require("_createForOfIteratorHelperLoose").space.PX_16 };
_createForOfIteratorHelperLoose.list = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("_createForOfIteratorHelperLoose").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;
2026-07-23 10:11:24 +00:00
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) => {
2026-07-20 16:05:17 +00:00
const section = tmp;
const diff = commands.length - 1;
2026-07-23 10:11:24 +00:00
return outer1_3(section(commands[6]), {
2026-07-20 16:05:17 +00:00
item: commands[arg1],
onPress() {
2026-07-23 10:11:24 +00:00
return outer1_2(closure_0);
2026-07-20 16:05:17 +00:00
},
section,
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 = _createForOfIteratorHelperLoose();
return jsx(section(commands[7]), { style: _createForOfIteratorHelperLoose().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
};