59 lines
3.2 KiB
TypeScript
59 lines
3.2 KiB
TypeScript
/* Metro module 11400; source: modules/summaries/native/SummaryActionSheetButton.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 1305, 4573, 2] */
|
|
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
|
|
var object3;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object3 = {container: {'flexDirection': 'column', 'justifyContent': 'center', 'alignItems': 'center',
|
|
'paddingVertical': 8, 'width': 78}};
|
|
const object4 = {'borderRadius': null, 'border': 1, 'overflow': 'hidden', 'alignItems': 'center',
|
|
'justifyContent': 'center'};
|
|
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
|
object4.backgroundColor = BACKGROUND_BASE_LOW;
|
|
const SHADOW_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_LOW;
|
|
copyDataProperties(object4, SHADOW_LOW, undefined);
|
|
object3.iconBox = object4;
|
|
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
object3.icon = {margin: 12, tintColor: INTERACTIVE_TEXT_DEFAULT};
|
|
object3.name = {'textAlign': 'center', 'marginTop': 8};
|
|
const env0_5 = Reflect.apply(createStyles, value, [object3]);
|
|
(require(2) /* metro dependency 2 */).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 = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
|
const items2 = [styles.iconBox];
|
|
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
|
const view = <View style={items2}><Icon style={styles.icon} source={iconSource} /></View>;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).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>
|
|
);
|
|
}
|
|
|