decord/source/modules/user_profile/native/UserProfileTextButtonGroup.tsx

78 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12153
// Function ID: 12154
2026-07-20 16:05:17 +00:00
// Name: UserProfileTextButtonGroup
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 5643, 21, 4255, 1474, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 12153 (UserProfileTextButtonGroup)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { PROFILE_SIDE_PADDING } from "ARBITRARY_LARGE_OFFSET";
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;
({ jsx: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ container: { flexDirection: "row", flexWrap: "wrap", gap: 12 }, buttonArea: { flexGrow: 1 } });
2026-07-23 10:11:24 +00:00
let result = require("ARBITRARY_LARGE_OFFSET").fileFinishedImporting("modules/user_profile/native/UserProfileTextButtonGroup.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileTextButtonGroup(arg0) {
let maxWidth;
let primaryButton;
let secondaryButton;
let style;
({ primaryButton, secondaryButton, maxWidth, style } = arg0);
let items = callback3();
2026-07-29 08:29:29 +00:00
const width = importDefault(1474)().width;
2026-07-20 16:05:17 +00:00
let bound = width;
if (null != maxWidth) {
const _Math = Math;
bound = Math.min(width, maxWidth);
}
2026-07-29 08:29:29 +00:00
const diff = bound - 2 * PROFILE_SIDE_PADDING;
2026-07-20 16:05:17 +00:00
if (null == primaryButton) {
if (null == secondaryButton) {
return null;
}
}
if (null == primaryButton) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = items.container;
items[1] = style;
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj[1] = secondaryButton;
2026-07-20 16:05:17 +00:00
callback(View, obj);
} else if (null == secondaryButton) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items1 = [items.container, style];
2026-07-29 08:29:29 +00:00
obj[0] = items1;
obj[1] = primaryButton;
2026-07-20 16:05:17 +00:00
callback(View, obj);
} else {
2026-07-29 08:29:29 +00:00
const result = (diff - 12) / 2;
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items2 = [items.container, style];
2026-07-29 08:29:29 +00:00
obj[0] = items2;
const obj1 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items3 = [items.buttonArea, ];
2026-07-29 08:29:29 +00:00
const obj2 = { minWidth: null };
obj2[0] = result;
2026-07-20 16:05:17 +00:00
items3[1] = obj2;
2026-07-29 08:29:29 +00:00
obj1[0] = items3;
obj1[1] = primaryButton;
2026-07-20 16:05:17 +00:00
const items4 = [callback(View, obj1), ];
2026-07-29 08:29:29 +00:00
const obj3 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items5 = [items.buttonArea, ];
2026-07-29 08:29:29 +00:00
const obj4 = { minWidth: null };
obj4[0] = result;
2026-07-20 16:05:17 +00:00
items5[1] = obj4;
2026-07-29 08:29:29 +00:00
obj3[0] = items5;
obj3[1] = secondaryButton;
2026-07-20 16:05:17 +00:00
items4[1] = callback(View, obj3);
2026-07-29 08:29:29 +00:00
obj[1] = items4;
2026-07-20 16:05:17 +00:00
callback2(View, obj);
}
};