71 lines
2.2 KiB
TypeScript
71 lines
2.2 KiB
TypeScript
// Module ID: 11904
|
|
// Function ID: 92139
|
|
// Name: UserProfileTextButtonGroup
|
|
// Dependencies: []
|
|
// Exports: default
|
|
|
|
// Module 11904 (UserProfileTextButtonGroup)
|
|
importAll(dependencyMap[0]);
|
|
const View = arg1(dependencyMap[1]).View;
|
|
const PROFILE_SIDE_PADDING = arg1(dependencyMap[2]).PROFILE_SIDE_PADDING;
|
|
({ jsx: closure_4, jsxs: closure_5 } = arg1(dependencyMap[3]));
|
|
const tmp3 = arg1(dependencyMap[3]);
|
|
let closure_6 = arg1(dependencyMap[4]).createStyles({ container: {}, buttonArea: { flexGrow: 1 } });
|
|
const obj = arg1(dependencyMap[4]);
|
|
const result = arg1(dependencyMap[6]).fileFinishedImporting("modules/user_profile/native/UserProfileTextButtonGroup.tsx");
|
|
|
|
export default function UserProfileTextButtonGroup(arg0) {
|
|
let maxWidth;
|
|
let primaryButton;
|
|
let secondaryButton;
|
|
let style;
|
|
({ primaryButton, secondaryButton, maxWidth, style } = arg0);
|
|
let items = callback3();
|
|
const width = importDefault(dependencyMap[5])().width;
|
|
let bound = width;
|
|
if (null != maxWidth) {
|
|
const _Math = Math;
|
|
bound = Math.min(width, maxWidth);
|
|
}
|
|
const result = (bound - 2 * PROFILE_SIDE_PADDING - 12) / 2;
|
|
if (null == primaryButton) {
|
|
if (null == secondaryButton) {
|
|
return null;
|
|
}
|
|
}
|
|
if (null == primaryButton) {
|
|
let obj = {};
|
|
items = [, ];
|
|
items[0] = items.container;
|
|
items[1] = style;
|
|
obj.style = items;
|
|
obj.children = secondaryButton;
|
|
callback(View, obj);
|
|
} else if (null == secondaryButton) {
|
|
obj = {};
|
|
const items1 = [items.container, style];
|
|
obj.style = items1;
|
|
obj.children = primaryButton;
|
|
callback(View, obj);
|
|
} else {
|
|
obj = {};
|
|
const items2 = [items.container, style];
|
|
obj.style = items2;
|
|
const obj1 = {};
|
|
const items3 = [items.buttonArea, ];
|
|
const obj2 = { minWidth: result };
|
|
items3[1] = obj2;
|
|
obj1.style = items3;
|
|
obj1.children = primaryButton;
|
|
const items4 = [callback(View, obj1), ];
|
|
const obj3 = {};
|
|
const items5 = [items.buttonArea, ];
|
|
const obj4 = { minWidth: result };
|
|
items5[1] = obj4;
|
|
obj3.style = items5;
|
|
obj3.children = secondaryButton;
|
|
items4[1] = callback(View, obj3);
|
|
obj.children = items4;
|
|
callback2(View, obj);
|
|
}
|
|
};
|