decord/source/modules/icymi/native/ContentInventoryEntryRow.tsx
2026-08-27 16:17:25 +00:00

52 lines
1.8 KiB
TypeScript

// Module ID: 16001
// Function ID: 16002
// Name: ContentInventoryEntryRow
// Dependencies: [19, 4098, 21, 589, 7971, 16002, 16011, 2]
// Exports: default
// Module 16001 (ContentInventoryEntryRow)
import noopAll from "noop" /* 19 */;
import itemsDefault from "items" /* 16002 */;
import CustomStatusEntryRowDefault from "CustomStatusEntryRow" /* 16011 */;
import closure_3 from "markAllUserIdListsStale" /* 4098 */;
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(7971).ContentInventoryEntryType.TOP_GAME !== content_type) {
if (tmp(7971).ContentInventoryEntryType.PLAYED_GAME !== content_type) {
if (tmp(7971).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 });
}
};