52 lines
1.8 KiB
TypeScript
52 lines
1.8 KiB
TypeScript
// Module ID: 16019
|
|
// Function ID: 16020
|
|
// Name: ContentInventoryEntryRow
|
|
// Dependencies: [19, 4099, 21, 589, 7985, 16020, 16029, 2]
|
|
// Exports: default
|
|
|
|
// Module 16019 (ContentInventoryEntryRow)
|
|
import noopAll from "noop" /* 19 */;
|
|
import itemsDefault from "items" /* 16020 */;
|
|
import CustomStatusEntryRowDefault from "CustomStatusEntryRow" /* 16029 */;
|
|
import closure_3 from "markAllUserIdListsStale" /* 4099 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
const require = arg1;
|
|
noopAll;
|
|
const result = require("set").fileFinishedImporting("modules/icymi/native/ContentInventoryEntryRow.tsx");
|
|
|
|
export default function ContentInventoryEntryRow(content) {
|
|
content = content.content;
|
|
let flag = content.renderForScreenshot;
|
|
if (flag === undefined) {
|
|
flag = false;
|
|
}
|
|
let flag2 = content.visible;
|
|
let obj = content(589);
|
|
const items = [closure_3];
|
|
if (obj.useStateFromStores(items, () => closure_1_3.isBlockedOrIgnored(content.author_id))) {
|
|
return null;
|
|
} else {
|
|
const content_type = content.content_type;
|
|
if (tmp(7985).ContentInventoryEntryType.TOP_GAME !== content_type) {
|
|
if (tmp(7985).ContentInventoryEntryType.PLAYED_GAME !== content_type) {
|
|
if (tmp(7985).ContentInventoryEntryType.CUSTOM_STATUS === content_type) {
|
|
obj = { content: null, renderForScreenshot: null, visible: null };
|
|
obj[0] = content;
|
|
obj[1] = flag;
|
|
if (flag2 == null) {
|
|
flag2 = false;
|
|
}
|
|
obj[2] = flag2;
|
|
return jsx(CustomStatusEntryRowDefault, { content: null, renderForScreenshot: null, visible: null });
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
obj = { content: null, renderForScreenshot: null };
|
|
obj[0] = content;
|
|
obj[1] = flag;
|
|
return jsx(itemsDefault, { content: null, renderForScreenshot: null });
|
|
}
|
|
};
|