35 lines
2.8 KiB
TypeScript
35 lines
2.8 KiB
TypeScript
/* Metro module 15230; source: modules/application_commands/native/ContextMenuCommandAppScreen.tsx; dependencies: [31, 33, 4501, 697, 5463, 7705, 15229, 8671, 2] */
|
|
function _fun116514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:6, offset: 0x0248c55d, size: 200 bytes, params: 8, frame: 21
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = createStylesModule.createStyles;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
const env0_4 = Reflect.apply(createStyles, createStylesModule, [{list: {marginHorizontal: PX_16}}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/application_commands/native/ContextMenuCommandAppScreen.tsx');
|
|
exports.default = ContextMenuCommandAppScreen;
|
|
}
|
|
|
|
function ContextMenuCommandAppScreen(a0) { // fn#116515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:301, offset: 0x0248c625, size: 255 bytes, params: 2, frame: 23
|
|
const {section, commands, onPressCommand} = a0.route.params;
|
|
const env0_2 = onPressCommand;
|
|
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
|
const value2 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
|
const binding = env0_2;
|
|
const value3 = binding.useMemo(function() {
|
|
return [commands.length];
|
|
}, [commands.length]);
|
|
const value4 = binding.useCallback(_fun116517, [commands, onPressCommand, section]);
|
|
const styles = useStyles();
|
|
return ((Component) => <Component style={styles.list} sections={value3} estimatedListSize="windowSize" itemSize={value2} insetEnd={insets.bottom} renderItem={value4} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
|
}
|
|
|
|
function _fun116517(a0, a1) { // fn#116517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15427:515, offset: 0x0248c73a, size: 119 bytes, params: 3, frame: 20
|
|
const commandsBinding = commands;
|
|
const property = commandsBinding[a1];
|
|
return ((Component) => <Component item={property} onPress={onPress_116518} section={section} start={a1 === 0} end={a1 === commandsBinding.length - 1} key={property.id} />)(importDefault(15229) /* metro dependency 15229: ContextMenuCommandItem */);
|
|
}
|
|
|