decord/source/modules/application_commands/native/ContextMenuCommandAppScreen.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

45 lines
1.6 KiB
TypeScript

// Module ID: 16956
// Function ID: 16957
// Name: ContextMenuCommandAppScreen
// Dependencies: [19, 21, 4607, 576, 7055, 7123, 16955, 7129, 2]
// Exports: default
// Module 16956 (ContextMenuCommandAppScreen)
import nativeDefault from "native" /* 576 */;
import noop from "module_19" /* 19 */;
const jsx = fn(21).jsx;
const createStyles = fn(4607);
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");
export default function ContextMenuCommandAppScreen(route) {
const params = route.route.params;
let section = params.section;
const commands = params.commands;
const onPressCommand = params.onPressCommand;
let items = [commands.length];
const items1 = [commands, onPressCommand, section];
const memo = onPressCommand.useMemo(() => {
const items = [commands.length];
return items;
}, items);
const callback = onPressCommand.useCallback((arg0, arg1) => {
section = tmp;
const diff = commands.length - 1;
return jsx(section(commands[6]), {
item: commands[arg1],
onPress() {
return onPressCommand(closure_0);
},
section,
start: 0 === arg1,
end: arg1 === diff
}, commands[arg1].id);
}, items1);
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 });
};