decord/source/design/void/RoleLabel/native/RoleLabel.tsx

54 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 10184
// Function ID: 10185
2026-07-20 16:05:17 +00:00
// Name: RoleLabel
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 4662, 21, 4661, 589, 1297, 8083, 2]
2026-07-20 16:05:17 +00:00
// Exports: RoleLabel
2026-08-15 05:55:55 +00:00
// Module 10184 (RoleLabel)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ container: { display: "flex", flexDirection: "row" }, roleDot: { marginRight: 4 } });
const result = require("maybeApplyNoTextColorForLightCustomTheme").fileFinishedImporting("design/void/RoleLabel/native/RoleLabel.tsx");
2026-07-20 16:05:17 +00:00
export const RoleLabel = function RoleLabel(color) {
let colors;
let name;
color = color.color;
({ name, colors } = color);
const tmp = callback2();
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [maybeApplyNoTextColorForLightCustomTheme];
const stateFromStores = obj.useStateFromStores(items, () => roleStyle.roleStyle);
let tmp5 = "username" === stateFromStores;
if (tmp5) {
tmp5 = null != color;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp5) {
obj = { color: null };
obj[0] = color;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
let tmp10 = "dot" === stateFromStores;
if (tmp10) {
tmp10 = null != color;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp10) {
const obj1 = { color: null, colors: null, containerStyles: null };
obj1[0] = color;
obj1[1] = colors;
obj1[2] = tmp.roleDot;
tmp10 = callback(tmp2(1297).RoleDot, obj1);
2026-07-20 16:05:17 +00:00
}
2026-08-15 05:55:55 +00:00
const items1 = [tmp10, callback(require(8083) /* Form */.FormLabel, { style: {}, text: name })];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return closure_5(View, obj);
};