36 lines
2.1 KiB
TypeScript
36 lines
2.1 KiB
TypeScript
/* Metro module 10904; source: components_native/common/Notifications.tsx; dependencies: [31, 10905, 33, 566, 10932, 2] */
|
|
import InAppNotificationStore from '../../stores/native/InAppNotificationStore.tsx'; /* Metro dependency 10905 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
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 */
|
|
|
|
function _fun83467(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11090:6, offset: 0x01f1be1a, size: 154 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/common/Notifications.tsx');
|
|
exports.default = Notifications;
|
|
function Notifications() { // fn#83468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11090:214, offset: 0x01f1beb4, size: 111 bytes, params: 1, frame: 17
|
|
var r0;
|
|
var value;
|
|
const currentNotification = (require(566) /* metro dependency 566: flux */).useStateFromStores([InAppNotificationStore],
|
|
function() {
|
|
return InAppNotificationStore.getCurrentNotification();
|
|
});
|
|
const value2 = null;
|
|
if (value2 == currentNotification) {
|
|
r0 = value2;
|
|
} else {
|
|
value = importDefault(10932) /* metro dependency 10932: InAppNotificationContainer */;
|
|
value = ((Component) => <Component notification={currentNotification} key={currentNotification.key} />)(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun83467, 10904, [31, 10905, 33, 566, 10932,
|
|
2]) /* metro module 10904, dependencies: [31, 10905, 33, 566, 10932, 2] */;
|