75 lines
4.3 KiB
TypeScript
75 lines
4.3 KiB
TypeScript
/* Metro module 11260; source: modules/navbars/native/components/AnnouncementChannelLurkerBar.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 1244, 4578, 11261, 2] */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
|
|
function _fun86036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11446:6, offset: 0x01f853b6, size: 266 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH;
|
|
const env0_5 = Reflect.apply(createStyles, value, [{wrapper: {'backgroundColor': null, 'padding': 16,
|
|
'paddingTop': 8, backgroundColor: BACKGROUND_SURFACE_HIGH}, text: {'textAlign': 'center', 'marginBottom': 8}}]);
|
|
const AnnouncementChannelLurkerBar2 = AnnouncementChannelLurkerBar;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/navbars/native/components/AnnouncementChannelLurkerBar.tsx');
|
|
exports.default = AnnouncementChannelLurkerBar2;
|
|
exports.AnnouncementChannelLurkerBar = AnnouncementChannelLurkerBar2;
|
|
function AnnouncementChannelLurkerBar({channel}) { // fn#86037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11446:331, offset: 0x01f854c0, size: 284 bytes, params: 2, frame: 23
|
|
const styles = useStyles();
|
|
const Text = (TextModule).Text;
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const Hl0Mqh = (IndexNativeModule).t.Hl0Mqh;
|
|
const text = (
|
|
<Text
|
|
style={styles.text}
|
|
variant="text-sm/medium"
|
|
color="mobile-text-heading-primary"
|
|
>
|
|
{Reflect.apply(string, intl, [Hl0Mqh])}
|
|
</Text>
|
|
);
|
|
const Button = (ButtonNativeModule).Button;
|
|
return (
|
|
<View style={styles.wrapper}>
|
|
{text}
|
|
<Button
|
|
onPress={onPress_86038}
|
|
text={intl.string((IndexNativeModule).t['4z5PU1'])}
|
|
size="sm"
|
|
variant="secondary"
|
|
grow
|
|
/>
|
|
</View>
|
|
);
|
|
function AnnouncementChannelLurkerBarOnPress() { // fn#86038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11446:560, owner: AnnouncementChannelLurkerBar.onPress, offset: 0x01f855dc, size: 69 bytes, params: 1, frame: 14
|
|
var value2;
|
|
const channelBinding = channel;
|
|
const id = channelBinding.id;
|
|
const guildId = channelBinding.getGuildId();
|
|
if (guildId != null) {
|
|
value2 = environment.__proto__;
|
|
(require(11261) /* metro dependency 11261: showChannelFollowingActionSheet */).showChannelFollowingActionSheet(id,
|
|
|
|
guildId);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun86036, 11260, [31, 27, 33, 4501, 697, 4573, 1244, 4578, 11261,
|
|
2]) /* metro module 11260, dependencies: [31, 27, 33, 4501, 697, 4573, 1244, 4578, 11261, 2] */;
|