decord/source/modules/virtual_currency/native/BalanceWidgetPillButton.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

63 lines
1.9 KiB
TypeScript

// Module ID: 11261
// Function ID: 11262
// Name: BalanceWidgetPillButton
// Dependencies: [19, 21, 5062, 8993, 1115, 2]
// Module 11261 (BalanceWidgetPillButton)
import components_Button_Button from "components/Button/Button" /* 5062 */;
import _modDef8993 from "module_8993" /* 8993 */;
import noop from "module_19" /* 19 */;
require = fn;
class BalanceWidgetPillButton {
constructor(arg0) {
({ balance, variant } = global);
if (variant === undefined) {
variant = "tertiary";
}
flag = global.accessible;
if (flag === undefined) {
flag = true;
}
tmp2 = closure_0;
tmp3 = closure_2;
tmp = jsx;
obj = { variant, onPress: global.onPress, size: "sm", text: null, icon: null, accessible: null, accessibilityElementsHidden: null, importantForAccessibility: null, accessibilityLabel: null, disabled: null, loading: null };
str = undefined;
if (balance != null) {
str = balance.toString();
}
if (str == null) {
str = "";
}
obj.text = str;
obj.icon = closure_1(tmp3[3]);
obj.accessible = flag;
obj.accessibilityElementsHidden = !flag;
str2 = "no";
if (flag) {
str2 = "auto";
}
tmp4 = null === balance;
obj.importantForAccessibility = str2;
intl = tmp2(tmp3[4]).intl;
if (tmp4) {
stringResult = intl.string(tmp2(tmp3[4]).t.y0WGqP);
} else {
obj1 = { balance: null };
obj1.balance = balance.toString();
stringResult = intl.formatToPlainString(tmp2(tmp3[4]).t.zPaLL9, obj1);
}
obj.accessibilityLabel = stringResult;
obj.disabled = tmp4;
obj.loading = tmp4;
return tmp(closure_0(closure_2[2]).Button, obj);
}
}
const jsx = fn(21).jsx;
BalanceWidgetPillButton.displayName = "BalanceWidgetPillButton";
const size = fn(2);
const result = size.fileFinishedImporting("modules/virtual_currency/native/BalanceWidgetPillButton.tsx");
export default BalanceWidgetPillButton;
export { BalanceWidgetPillButton };