73 lines
4.1 KiB
TypeScript
73 lines
4.1 KiB
TypeScript
/* Metro module 11494; source: modules/safety_hub/native/AppealIngestionExternalLink.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 3853, 4573, 1305, 8164, 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 _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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
const object2 = {marginBottom: 8};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object.childButton = object2;
|
|
const object3 = {'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;
|
|
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
object.childContainer = object3;
|
|
object.childButtonText = {'flex': 1, 'lineHeight': 20};
|
|
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
|
object.chevron = {color: INTERACTIVE_TEXT_DEFAULT};
|
|
const env0_6 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).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 = (PressablesModule).PressableHighlight;
|
|
const Text = (TextModule).Text;
|
|
const text2 = (
|
|
<Text
|
|
style={styles.childButtonText}
|
|
variant="text-md/semibold"
|
|
color="mobile-text-heading-primary"
|
|
>
|
|
{text}
|
|
</Text>
|
|
);
|
|
const Icon = (NativeModule).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>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun88063, 11494, [31, 27, 33, 4501, 697, 5278, 3853, 4573, 1305, 8164,
|
|
2]) /* metro module 11494, dependencies: [31, 27, 33, 4501, 697, 5278, 3853, 4573, 1305, 8164, 2] */;
|