47 lines
2.8 KiB
TypeScript
47 lines
2.8 KiB
TypeScript
/* Metro module 15065; source: modules/polls/native/PollBadge.tsx; dependencies: [31, 27, 33, 4501, 697, 1305, 15066, 4573, 1244, 2] */
|
|
function _fun113993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15262:6, offset: 0x0240fcd5, size: 312 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const object = {'borderRadius': null, 'paddingHorizontal': 8, 'backgroundColor': null, 'color': null,
|
|
'flexDirection': 'row', 'alignItems': 'center'};
|
|
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
|
|
object.color = TEXT_MUTED;
|
|
const env0_6 = Reflect.apply(createStyles, value, [{container: object, text: {'marginLeft': 4,
|
|
'textTransform': 'uppercase'}}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/native/PollBadge.tsx');
|
|
exports.default = PollBadge;
|
|
}
|
|
|
|
function PollBadge({style}) { // fn#113994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15262:488, offset: 0x0240fe0d, size: 253 bytes, params: 2, frame: 22
|
|
const styles = useStyles();
|
|
const items2 = [styles.container, style];
|
|
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
|
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
|
|
const EXTRA_SMALL_10 = IconSizes.EXTRA_SMALL_10;
|
|
const icon = <Icon size={EXTRA_SMALL_10} source={importDefault(15066) /* metro dependency 15066 */} />;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const RgIi2B = (require(1244) /* metro dependency 1244: indexNative */).t.RgIi2B;
|
|
return (
|
|
<View style={items2}>
|
|
{icon}
|
|
<Text style={styles.text} variant="text-xs/semibold">
|
|
{Reflect.apply(string, intl, [RgIi2B])}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|