47 lines
3.0 KiB
TypeScript
47 lines
3.0 KiB
TypeScript
/* Metro module 12724; source: design/void/IconPill/native/IconPill.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 4580, 8002, 2] */
|
|
function _fun97416(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12914:6, offset: 0x0217fe4c, size: 379 bytes, params: 8, frame: 25
|
|
var object3;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
|
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
|
|
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 = {};
|
|
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null, 'borderRadius': null,
|
|
'height': 20, 'paddingHorizontal': 8};
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
|
object3.pillContainer = object5;
|
|
let TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
|
object3.pillIcon = {tintColor: TEXT_SUBTLE, marginRight: 4};
|
|
const object6 = {};
|
|
const PRIMARY_NORMAL = Fonts.PRIMARY_NORMAL;
|
|
object6.fontFamily = PRIMARY_NORMAL;
|
|
TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
|
object6.color = TEXT_SUBTLE;
|
|
object6.fontSize = 14;
|
|
object6.lineHeight = 18;
|
|
object3.pillText = object6;
|
|
const env0_5 = Reflect.apply(createStyles, value, [object3]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/IconPill/native/IconPill.tsx');
|
|
exports.default = IconPill;
|
|
}
|
|
|
|
function IconPill({text, source, IconComponent, style, textStyle, accessibilityLabel}) { // fn#97417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12914:603, offset: 0x0217ffc7, size: 282 bytes, params: 2, frame: 26
|
|
const styles = useStyles();
|
|
return (
|
|
<View style={[styles.pillContainer, style]}>
|
|
{IconComponent != null ? <IconComponent size="xxs" style={styles.pillIcon} /> : ((Component) => <Component source={source} size={(importDefault(4580) /* metro dependency 4580: Icon */).Sizes.EXTRA_SMALL} style={styles.pillIcon} />)(importDefault(4580) /* metro dependency 4580: Icon */)}
|
|
{((Component) => <Component style={[styles.pillText,
|
|
textStyle]} numberOfLines={1} accessibilityLabel={accessibilityLabel}>{text}</Component>)(importDefault(8002) /* metro dependency 8002: LegacyText */)}
|
|
</View>
|
|
);
|
|
}
|
|
|