45 lines
3.4 KiB
TypeScript
45 lines
3.4 KiB
TypeScript
/* Metro module 14863; source: modules/icymi/native/ContentInventoryEntryRow.tsx; dependencies: [31, 3793, 33, 566, 8370, 14864, 14873, 2] */
|
|
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
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 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
|
|
function _fun112403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15060:6, offset: 0x023c9f97, size: 154 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ContentInventoryEntryRow.tsx');
|
|
exports.default = ContentInventoryEntryRow;
|
|
function ContentInventoryEntryRow({content, renderForScreenshot, visible}) { // fn#112404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15060:221, offset: 0x023ca031, size: 315 bytes, params: 2, frame: 19
|
|
renderForScreenshot = !(renderForScreenshot === undefined) && renderForScreenshot;
|
|
const useStateFromStores = FluxModule.useStateFromStores;
|
|
if (!Reflect.apply(useStateFromStores, FluxModule, [[RelationshipStore], function() {
|
|
return RelationshipStore.isBlockedOrIgnored(content.author_id);
|
|
}])) {
|
|
var content_type = content.content_type;
|
|
var ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
|
|
var TOP_GAME = ContentInventoryEntryType.TOP_GAME;
|
|
if (TOP_GAME === content_type) {
|
|
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
|
|
}
|
|
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
|
|
var PLAYED_GAME = ContentInventoryEntryType.PLAYED_GAME;
|
|
if (PLAYED_GAME === content_type) {
|
|
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
|
|
}
|
|
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
|
|
var CUSTOM_STATUS = ContentInventoryEntryType.CUSTOM_STATUS;
|
|
if (CUSTOM_STATUS === content_type) {
|
|
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} visible={visible != null && visible} />)(importDefault(14873) /* metro dependency 14873: CustomStatusEntryRow */);
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun112403, 14863, [31, 3793, 33, 566, 8370, 14864, 14873,
|
|
2]) /* metro module 14863, dependencies: [31, 3793, 33, 566, 8370, 14864, 14873, 2] */;
|