decord/source/modules/user_profile/native/UserProfileSection.tsx
2026-09-03 10:05:34 +00:00

74 lines
2.9 KiB
TypeScript

// Module ID: 11407
// Function ID: 11408
// Name: UserProfileSection
// Dependencies: [19, 17, 21, 4478, 709, 4204, 5984, 4326, 8382, 4474, 2]
// Exports: default
// Module 11407 (UserProfileSection)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import ManaContext from "ManaContext" /* 4204 */;
import useProfileThemeValues from "useProfileThemeValues" /* 5984 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
require = arg1;
noopAll;
({ 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: ThemesDefault.radii.sm, borderColor: ThemesDefault.colors.BORDER_SUBTLE };
createCacheKey[3] = createCacheKey;
let closure_5 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileSection.tsx");
export default function UserProfileSection(title) {
title = title.title;
({ headerIcon, trailingIcon, showContainer, children, style } = title);
const merged = Object.assign(title, Object.create(null));
const tmp2 = callback2();
let obj = ManaContext;
const themeContext = obj.useThemeContext();
({ theme, primaryColor } = themeContext);
obj1 = useProfileThemeValues;
const profileThemeValues = obj1.useProfileThemeValues(theme);
obj = {};
const merged1 = Object.assign(tmp2.contentContainer);
if (null != primaryColor) {
if (null != profileThemeValues) {
let borderColor = tmp3(4326).hexOpacityToRgba(tmp3(8382).DIVIDER_COLORS[theme], profileThemeValues.dividerOpacity);
const tmp3Result = tmp3(4326);
}
obj.borderColor = borderColor;
obj = { style: null };
const items = [tmp2.section, style];
obj[0] = items;
const merged2 = Object.assign(merged);
let tmp8Result = null;
if (null != title) {
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;
const items1 = [callback(tmp3(4474).Text, obj3), headerIcon];
obj2[1] = items1;
const items2 = [tmp8(tmp9, obj2), trailingIcon];
obj1[1] = items2;
tmp8Result = tmp8(tmp9, obj1);
}
const items3 = [tmp8Result, ];
let tmp16 = null;
if (showContainer) {
tmp16 = obj;
}
const obj4 = { style: null, children: null };
obj4[0] = tmp16;
obj4[1] = children;
items3[1] = callback(View, obj4);
obj.children = items3;
return closure_4(View, obj);
}
borderColor = tmp2.contentContainer.borderColor;
};