47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
// Module ID: 8840
|
|
// Function ID: 8841
|
|
// Name: ProfileBanner
|
|
// Dependencies: [19, 17, 676, 21, 4303, 688, 5268, 2]
|
|
// Exports: default
|
|
|
|
// Module 8840 (ProfileBanner)
|
|
import "noop";
|
|
import { View } from "get ActivityIndicator";
|
|
import { BANNER_HEIGHT } from "ME";
|
|
import { jsx } from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
const require = arg1;
|
|
let closure_6 = createCacheKey.createStyles({ root: { width: "100%" }, image: { width: "100%", height: "100%" } });
|
|
const result = require("ME").fileFinishedImporting("modules/profile_customization/native/Banner.tsx");
|
|
|
|
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();
|
|
let obj = { backgroundColor: null, height: null };
|
|
obj[0] = require(688) /* int2hslRaw */.int2hex(backgroundColor);
|
|
obj[1] = bannerHeight + bannerSafeArea;
|
|
obj = { style: items, children: null };
|
|
items = [tmp.root, obj, style];
|
|
let tmp3Result = null;
|
|
if (null != bannerSource) {
|
|
obj = { style: null, source: null };
|
|
obj[0] = tmp.image;
|
|
obj[1] = bannerSource;
|
|
tmp3Result = tmp3(importDefault(5268), obj);
|
|
}
|
|
obj[1] = tmp3Result;
|
|
return <View style={items}>{null}</View>;
|
|
};
|