decord/source/modules/icymi/native/ContentInventoryEntryRow.tsx

53 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15825
// Function ID: 15826
2026-07-20 16:05:17 +00:00
// Name: ContentInventoryEntryRow
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 4033, 21, 589, 8383, 15826, 15835, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15825 (ContentInventoryEntryRow)
import noopAll from "noop" /* 19 */;
import itemsDefault from "items" /* 15826 */;
import CustomStatusEntryRowDefault from "CustomStatusEntryRow" /* 15835 */;
import closure_3 from "markAllUserIdListsStale" /* 4033 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
const result = require("set").fileFinishedImporting("modules/icymi/native/ContentInventoryEntryRow.tsx");
2026-07-20 16:05:17 +00:00
export default function ContentInventoryEntryRow(content) {
content = content.content;
let flag = content.renderForScreenshot;
if (flag === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let flag2 = content.visible;
let obj = content(589);
2026-08-24 06:08:38 +00:00
const items = [closure_3];
if (obj.useStateFromStores(items, () => closure_1_3.isBlockedOrIgnored(content.author_id))) {
2026-07-20 16:05:17 +00:00
return null;
} else {
const content_type = content.content_type;
2026-08-24 06:08:38 +00:00
if (tmp(8383).ContentInventoryEntryType.TOP_GAME !== content_type) {
if (tmp(8383).ContentInventoryEntryType.PLAYED_GAME !== content_type) {
if (tmp(8383).ContentInventoryEntryType.CUSTOM_STATUS === content_type) {
2026-07-29 08:29:29 +00:00
obj = { content: null, renderForScreenshot: null, visible: null };
obj[0] = content;
obj[1] = flag;
if (flag2 == null) {
flag2 = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = flag2;
2026-08-24 06:08:38 +00:00
return jsx(CustomStatusEntryRowDefault, { content: null, renderForScreenshot: null, visible: null });
2026-07-20 16:05:17 +00:00
} else {
return null;
}
}
}
2026-07-29 08:29:29 +00:00
obj = { content: null, renderForScreenshot: null };
obj[0] = content;
obj[1] = flag;
2026-08-24 06:08:38 +00:00
return jsx(itemsDefault, { content: null, renderForScreenshot: null });
2026-07-20 16:05:17 +00:00
}
};