57 lines
3.2 KiB
TypeScript
57 lines
3.2 KiB
TypeScript
/* Metro module 11494; source: modules/safety_hub/native/AppealIngestionExternalLink.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 3853, 4573, 1305, 8164, 2] */
|
|
function _fun88063(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11680:6, offset: 0x01fd35a2, size: 356 bytes, params: 8, frame: 22
|
|
var object4;
|
|
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;
|
|
object4 = {};
|
|
const object5 = {marginBottom: 8};
|
|
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object4.childButton = object5;
|
|
const object6 = {'minHeight': 60, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start',
|
|
'backgroundColor': null, 'paddingVertical': 16, 'paddingStart': 16, 'paddingEnd': 8};
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object4.childContainer = object6;
|
|
object4.childButtonText = {'flex': 1, 'lineHeight': 20};
|
|
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
object4.chevron = {color: INTERACTIVE_TEXT_DEFAULT};
|
|
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionExternalLink.tsx');
|
|
exports.default = AppealIngestionExternalLink;
|
|
}
|
|
|
|
function AppealIngestionExternalLink({text, url, onPress}) { // fn#88064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11680:659, offset: 0x01fd3706, size: 265 bytes, params: 2, frame: 23
|
|
const styles = useStyles();
|
|
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const text2 = <Text style={styles.childButtonText} variant="text-md/semibold" color="mobile-text-heading-primary">{text}</Text>;
|
|
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
|
return (
|
|
<PressableHighlight
|
|
style={styles.childButton}
|
|
accessibilityRole="button"
|
|
onPress={function() {
|
|
if (onPress != null) {
|
|
onPress();
|
|
}
|
|
importDefault(dependencyMap[6]).openURL(url);
|
|
}}
|
|
>
|
|
<View style={styles.childContainer}>
|
|
{text2}
|
|
<Icon source={require(8164) /* metro dependency 8164 */} color={styles.chevron.color} />
|
|
</View>
|
|
</PressableHighlight>
|
|
);
|
|
}
|
|
|