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

47 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 16685
// Function ID: 16686
2026-07-20 16:05:17 +00:00
// Name: ContextMenuCommandAppScreen
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 4478, 709, 5602, 7784, 16684, 7787, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 16685 (ContextMenuCommandAppScreen)
import ThemesDefault from "Themes" /* 709 */;
2026-08-24 06:08:38 +00:00
import closure_2 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
createCacheKey = { list: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginHorizontal: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_4 = createCacheKey.createStyles(createCacheKey);
const result = require("set").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-08-24 06:08:38 +00:00
const 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-08-24 06:08:38 +00:00
closure_0 = tmp;
2026-07-20 16:05:17 +00:00
const diff = commands.length - 1;
2026-08-24 06:08:38 +00:00
return closure_1_3(section(commands[6]), {
2026-07-20 16:05:17 +00:00
item: commands[arg1],
onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_2(closure_0);
2026-07-20 16:05:17 +00:00
},
2026-08-24 06:08:38 +00:00
section: closure_0,
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])();
2026-08-24 06:08:38 +00:00
const tmp4 = callback();
return jsx(section(commands[7]), { style: callback().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
};