40 lines
1.7 KiB
TypeScript
40 lines
1.7 KiB
TypeScript
// Module ID: 13076
|
|
// Function ID: 13077
|
|
// Name: UserProfilePrivateInfoBanner
|
|
// Dependencies: [17, 21, 4560, 576, 4556, 1114, 2]
|
|
// Exports: default
|
|
|
|
// Module 13076 (UserProfilePrivateInfoBanner)
|
|
import set from "set" /* 2 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import ThemesDefault from "Themes" /* 576 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1114 */;
|
|
import Text from "Text" /* 4556 */;
|
|
import createCacheKey from "createCacheKey" /* 4560 */;
|
|
|
|
const View = get_ActivityIndicator.View;
|
|
const jsx = jsxProd.jsx;
|
|
let obj = { banner: null };
|
|
obj = { padding: ThemesDefault.space.PX_12, borderRadius: ThemesDefault.radii.lg, borderWidth: 1, borderColor: ThemesDefault.colors.BORDER_MUTED, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
|
|
obj[0] = obj;
|
|
let closure_4 = createCacheKey.createStyles(obj);
|
|
const result = set.fileFinishedImporting("modules/user_profile/native/UserProfilePrivateInfoBanner.tsx");
|
|
|
|
export default function UserProfilePrivateInfoBanner(username) {
|
|
const containerBackground = username.containerBackground;
|
|
const items = [callback().banner, ];
|
|
let tmp3 = null != containerBackground;
|
|
if (tmp3) {
|
|
let obj = { backgroundColor: null };
|
|
obj[0] = containerBackground;
|
|
tmp3 = obj;
|
|
}
|
|
obj = { style: items, children: null };
|
|
items[1] = tmp3;
|
|
obj = { variant: "text-sm/normal", children: null };
|
|
const intl = getSystemLocale.intl;
|
|
obj[1] = intl.format(getSystemLocale.t.P8ij6Z, { username: username.username });
|
|
obj[1] = jsx(Text.Text, { variant: "text-sm/normal", children: null });
|
|
return <View variant="text-sm/normal">{null}</View>;
|
|
};
|