decord/source/modules/user_profile/native/UserProfileSection.tsx

80 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 10941
// Function ID: 10942
2026-07-20 16:05:17 +00:00
// Name: UserProfileSection
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 712, 3967, 5617, 4099, 7302, 4251, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 10941 (UserProfileSection)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
createCacheKey = { titleContainer: { flexDirection: "row", marginBottom: 12, justifyContent: "space-between" }, title: { flexDirection: "row" }, section: { marginHorizontal: 12, marginTop: 12, marginBottom: 8 }, contentContainer: null };
createCacheKey = { borderWidth: 1, borderRadius: require("Themes").radii.sm, borderColor: require("Themes").colors.BORDER_SUBTLE };
createCacheKey[3] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/user_profile/native/UserProfileSection.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileSection(title) {
let children;
let headerIcon;
2026-07-29 08:29:29 +00:00
let primaryColor;
2026-07-20 16:05:17 +00:00
let showContainer;
let style;
2026-07-29 08:29:29 +00:00
let theme;
2026-07-20 16:05:17 +00:00
let trailingIcon;
title = title.title;
({ headerIcon, trailingIcon, showContainer, children, style } = title);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(title, Object.create(null));
const tmp2 = createCacheKey();
2026-08-05 07:35:12 +00:00
let obj = require(3967) /* ManaContext */;
2026-07-29 08:29:29 +00:00
const themeContext = obj.useThemeContext();
({ theme, primaryColor } = themeContext);
2026-08-05 07:35:12 +00:00
let obj1 = require(5617) /* useProfileThemeValues */;
2026-07-29 08:29:29 +00:00
const profileThemeValues = obj1.useProfileThemeValues(theme);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(tmp2.contentContainer);
if (null != primaryColor) {
2026-07-20 16:05:17 +00:00
if (null != profileThemeValues) {
2026-08-05 07:35:12 +00:00
let borderColor = tmp3(4099).hexOpacityToRgba(tmp3(7302).DIVIDER_COLORS[theme], profileThemeValues.dividerOpacity);
const tmp3Result = tmp3(4099);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj.borderColor = borderColor;
obj = { style: null };
const items = [tmp2.section, style];
obj[0] = items;
2026-07-20 16:05:17 +00:00
const merged2 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
let tmp8Result = null;
2026-07-20 16:05:17 +00:00
if (null != title) {
2026-07-29 08:29:29 +00:00
obj1 = { style: null, children: null };
obj1[0] = tmp2.titleContainer;
const obj2 = { style: null, children: null };
obj2[0] = tmp2.title;
const obj3 = { variant: "eyebrow", accessibilityRole: "header", children: null };
obj3[2] = title;
2026-08-05 07:35:12 +00:00
const items1 = [callback(tmp3(4251).Text, obj3), headerIcon];
2026-07-29 08:29:29 +00:00
obj2[1] = items1;
const items2 = [tmp8(tmp9, obj2), trailingIcon];
obj1[1] = items2;
tmp8Result = tmp8(tmp9, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items3 = [tmp8Result, ];
let tmp16 = null;
2026-07-20 16:05:17 +00:00
if (showContainer) {
2026-07-29 08:29:29 +00:00
tmp16 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj4 = { style: null, children: null };
obj4[0] = tmp16;
obj4[1] = children;
2026-07-20 16:05:17 +00:00
items3[1] = callback(View, obj4);
2026-07-29 08:29:29 +00:00
obj.children = items3;
return closure_4(View, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
borderColor = tmp2.contentContainer.borderColor;
2026-07-20 16:05:17 +00:00
};