62 lines
3.4 KiB
TypeScript
62 lines
3.4 KiB
TypeScript
// Module ID: 11259
|
|
// Function ID: 11260
|
|
// Name: ActivityShelfBadge
|
|
// Dependencies: [19, 17, 676, 21, 4189, 712, 1297, 1906, 4185, 1236, 2]
|
|
// Exports: default
|
|
|
|
// Module 11259 (ActivityShelfBadge)
|
|
import "noop";
|
|
import { View } from "get ActivityIndicator";
|
|
import { jsx } from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
import Button from "Button";
|
|
|
|
const require = arg1;
|
|
createCacheKey = { badge: null, newBadge: null, updatedBadge: null, elevationShadow: null, badgeText: null };
|
|
createCacheKey = { position: "absolute", top: 4, right: 4, display: "flex", flexDirection: "row", alignItems: "center", backgroundColor: require("Themes").colors.STATUS_POSITIVE_BACKGROUND };
|
|
createCacheKey[0] = createCacheKey;
|
|
createCacheKey[1] = { paddingLeft: 4, paddingRight: 6, borderRadius: require("Themes").radii.sm, height: 16, backgroundColor: require("Themes").colors.BADGE_NOTIFICATION_BACKGROUND };
|
|
let obj1 = { paddingLeft: 4, paddingRight: 6, borderRadius: require("Themes").radii.sm, height: 16, backgroundColor: require("Themes").colors.BADGE_NOTIFICATION_BACKGROUND };
|
|
createCacheKey[2] = { paddingLeft: 4, paddingRight: 6, borderRadius: require("Themes").radii.sm, height: 16, backgroundColor: require("Themes").colors.BADGE_BACKGROUND_BRAND };
|
|
createCacheKey[3] = Button.generateBoxShadowStyle(require("Button").FOUR_DP_ELEVATION_SHADOW_PARAMS);
|
|
createCacheKey[4] = { textTransform: "uppercase", marginLeft: 2, fontFamily: require("ME").Fonts.DISPLAY_EXTRABOLD, lineHeight: 16, fontSize: 12 };
|
|
createCacheKey = createCacheKey.createStyles(createCacheKey);
|
|
const obj2 = { paddingLeft: 4, paddingRight: 6, borderRadius: require("Themes").radii.sm, height: 16, backgroundColor: require("Themes").colors.BADGE_BACKGROUND_BRAND };
|
|
const result = require("ME").fileFinishedImporting("modules/activities/native/ActivityShelfBadge.tsx");
|
|
|
|
export default function ActivityShelfBadge(arg0) {
|
|
let labelType;
|
|
let replacementStyles;
|
|
({ labelType, replacementStyles } = arg0);
|
|
const tmp = createCacheKey();
|
|
if (replacementStyles == null) {
|
|
replacementStyles = tmp.badge;
|
|
}
|
|
if (labelType === require(1906) /* PermissionOverwriteType */.EmbeddedActivityLabelTypes.NEW) {
|
|
let obj = { style: null, children: null };
|
|
const items = [replacementStyles, , ];
|
|
({ newBadge: arr[1], elevationShadow: arr[2] } = tmp);
|
|
obj[0] = items;
|
|
obj = { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null };
|
|
obj[1] = tmp.badgeText;
|
|
const intl = tmp2(1236).intl;
|
|
obj[3] = intl.string(tmp2(1236).t.y2b7CA);
|
|
obj[1] = jsx(tmp2(4185).Text, { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null });
|
|
let tmp6 = <View variant="text-xs/semibold" style={null} color="text-overlay-light">{null}</View>;
|
|
} else {
|
|
tmp6 = null;
|
|
if (labelType === tmp2(1906).EmbeddedActivityLabelTypes.UPDATED) {
|
|
obj = { style: null, children: null };
|
|
const items1 = [replacementStyles, , ];
|
|
({ updatedBadge: arr2[1], elevationShadow: arr2[2] } = tmp);
|
|
obj[0] = items1;
|
|
const obj1 = { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null };
|
|
obj1[1] = tmp.badgeText;
|
|
const intl2 = tmp2(1236).intl;
|
|
obj1[3] = intl2.string(tmp2(1236).t["/qdhkk"]);
|
|
obj[1] = jsx(tmp2(4185).Text, { variant: "text-xs/semibold", style: null, color: "text-overlay-light", children: null });
|
|
tmp6 = <View style={null}>{null}</View>;
|
|
}
|
|
}
|
|
return tmp6;
|
|
};
|