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

45 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8987
// Function ID: 8988
2026-07-20 16:05:17 +00:00
// Name: ProfileBanner
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 676, 21, 4380, 688, 5374, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 8987 (ProfileBanner)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import int2hslRaw from "int2hslRaw" /* 688 */;
2026-08-25 06:04:03 +00:00
import preloadDefault from "preload" /* 5374 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { BANNER_HEIGHT } from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles({ root: { width: "100%" }, image: { width: "100%", height: "100%" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/profile_customization/native/Banner.tsx");
2026-07-20 16:05:17 +00:00
export default function ProfileBanner(bannerHeight) {
({ bannerSource, bannerSafeArea } = bannerHeight);
({ style, backgroundColor } = bannerHeight);
if (bannerSafeArea === undefined) {
bannerSafeArea = 0;
}
bannerHeight = bannerHeight.bannerHeight;
if (bannerHeight === undefined) {
bannerHeight = BANNER_HEIGHT;
}
const tmp = callback();
2026-08-24 06:08:38 +00:00
let obj = { backgroundColor: int2hslRaw.int2hex(backgroundColor), height: bannerHeight + bannerSafeArea };
2026-07-29 08:29:29 +00:00
obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.root, obj, style];
2026-07-29 08:29:29 +00:00
let tmp3Result = null;
2026-07-20 16:05:17 +00:00
if (null != bannerSource) {
2026-07-29 08:29:29 +00:00
obj = { style: null, source: null };
obj[0] = tmp.image;
obj[1] = bannerSource;
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(preloadDefault, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp3Result;
return <View style={items}>{null}</View>;
2026-07-20 16:05:17 +00:00
};