decord/source/modules/user_profile/native/UserProfileSection.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

74 lines
2.9 KiB
TypeScript

// Module ID: 11587
// Function ID: 11588
// Name: UserProfileSection
// Dependencies: [19, 17, 21, 4560, 576, 4271, 7184, 4409, 8604, 4556, 2]
// Exports: default
// Module 11587 (UserProfileSection)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import ManaContext from "ManaContext" /* 4271 */;
import useProfileThemeValues from "useProfileThemeValues" /* 7184 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
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(4409).hexOpacityToRgba(tmp3(8604).DIVIDER_COLORS[theme], profileThemeValues.dividerOpacity);
const tmp3Result = tmp3(4409);
}
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(4556).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;
};