decord/source/modules/profile_customization/native/Banner.tsx

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8040
2026-07-27 11:26:19 +00:00
// Function ID: 63949
2026-07-20 16:05:17 +00:00
// Name: ProfileBanner
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 653, 33, 4131, 665, 5085, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 8040 (ProfileBanner)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import { BANNER_HEIGHT } from "ME";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
let closure_6 = _createForOfIteratorHelperLoose.createStyles({ root: { width: "100%" }, image: { width: "100%", height: "100%" } });
const result = require("ME").fileFinishedImporting("modules/profile_customization/native/Banner.tsx");
2026-07-20 16:05:17 +00:00
export default function ProfileBanner(bannerHeight) {
let backgroundColor;
let bannerSafeArea;
let bannerSource;
let style;
({ bannerSource, bannerSafeArea } = bannerHeight);
({ style, backgroundColor } = bannerHeight);
if (bannerSafeArea === undefined) {
bannerSafeArea = 0;
}
bannerHeight = bannerHeight.bannerHeight;
if (bannerHeight === undefined) {
bannerHeight = BANNER_HEIGHT;
}
const tmp = callback();
2026-07-23 10:11:24 +00:00
let obj = { backgroundColor: require(665) /* pad2 */.int2hex(backgroundColor), height: bannerHeight + bannerSafeArea };
2026-07-20 16:05:17 +00:00
obj = { style: items };
2026-07-23 10:11:24 +00:00
items = [tmp.root, obj, style];
2026-07-20 16:05:17 +00:00
let tmp4 = null;
if (null != bannerSource) {
obj = { style: tmp.image, source: bannerSource };
2026-07-23 10:11:24 +00:00
tmp4 = jsx(importDefault(5085), { style: tmp.image, source: bannerSource });
2026-07-20 16:05:17 +00:00
}
obj.children = tmp4;
2026-07-23 10:11:24 +00:00
return <View style={items} />;
2026-07-20 16:05:17 +00:00
};