71 lines
4.0 KiB
TypeScript
71 lines
4.0 KiB
TypeScript
/* Metro module 11400; source: modules/summaries/native/SummaryActionSheetButton.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 1305, 4573, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
|
|
|
|
function _fun87339(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11586:6, offset: 0x01fb9ab0, size: 366 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {container: {'flexDirection': 'column', 'justifyContent': 'center', 'alignItems': 'center',
|
|
'paddingVertical': 8, 'width': 78}};
|
|
const object2 = {'borderRadius': null, 'border': 1, 'overflow': 'hidden', 'alignItems': 'center',
|
|
'justifyContent': 'center'};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
|
object2.backgroundColor = BACKGROUND_BASE_LOW;
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object2, SHADOW_LOW, undefined);
|
|
object.iconBox = object2;
|
|
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
object.icon = {margin: 12, tintColor: INTERACTIVE_TEXT_DEFAULT};
|
|
object.name = {'textAlign': 'center', 'marginTop': 8};
|
|
const env0_5 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/summaries/native/SummaryActionSheetButton.tsx');
|
|
exports.SummaryActionSheetButton = SummaryActionSheetButton;
|
|
function SummaryActionSheetButton({label, iconSource, onPress}) { // fn#87340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11586:692, offset: 0x01fb9c1e, size: 241 bytes, params: 2, frame: 24
|
|
const styles = useStyles();
|
|
const PressableOpacity = (PressablesModule).PressableOpacity;
|
|
const items2 = [styles.iconBox];
|
|
const Icon = (NativeModule).Icon;
|
|
const view = (
|
|
<View style={items2}>
|
|
<Icon style={styles.icon} source={iconSource} />
|
|
</View>
|
|
);
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<PressableOpacity
|
|
style={styles.container}
|
|
onPress={onPress}
|
|
accessibilityRole="button"
|
|
accessibilityLabel={label}
|
|
>
|
|
{view}
|
|
<Text
|
|
style={styles.name}
|
|
variant="text-xs/medium"
|
|
color="interactive-text-default"
|
|
lineClamp={1}
|
|
>
|
|
{label}
|
|
</Text>
|
|
</PressableOpacity>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun87339, 11400, [31, 27, 33, 4501, 697, 5278, 1305, 4573,
|
|
2]) /* metro module 11400, dependencies: [31, 27, 33, 4501, 697, 5278, 1305, 4573, 2] */;
|