decord/source/modules/collectibles/native/UnlockWithNitroButton.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

70 lines
2.6 KiB
TypeScript

// Module ID: 13163
// Function ID: 13164
// Name: UnlockWithNitroButton
// Dependencies: [19, 7237, 7558, 1076, 21, 504, 7240, 13148, 1114, 4976, 4556, 8662, 2]
// Exports: UnlockWithNitroButton
// Module 13163 (UnlockWithNitroButton)
import noopAll from "noop" /* 19 */;
import initialize from "initialize" /* 504 */;
import CollapsingText from "CollapsingText" /* 4976 */;
import NitroWheelIcon from "NitroWheelIcon" /* 8662 */;
import useOpenNitroSubscribeActionSheetDefault from "useOpenNitroSubscribeActionSheet" /* 13148 */;
import closure_3 from "updateProduct" /* 7237 */;
import closure_4 from "map" /* 7558 */;
import { ShopCtaEnum } from "items" /* 1076 */;
import { jsx } from "jsxProd" /* 21 */;
require = arg1;
noopAll;
const result = require("set").fileFinishedImporting("modules/collectibles/native/UnlockWithNitroButton.tsx");
export const UnlockWithNitroButton = function UnlockWithNitroButton(shouldShrink) {
let flag = shouldShrink.shouldShrink;
if (flag === undefined) {
flag = false;
}
({ onTrackPress: require, text } = shouldShrink);
importDefault = undefined;
let obj = initialize;
const items = [closure_4, closure_3];
const stateFromStores = obj.useStateFromStores(items, () => {
let isPurchasingProductResult = null != isClaiming.isClaiming;
if (!isPurchasingProductResult) {
isPurchasingProductResult = purchasingProduct.isPurchasingProduct(callback(table[6]).ProductIds.GENERIC_CONSUMABLE);
}
return isPurchasingProductResult;
});
importDefault = useOpenNitroSubscribeActionSheetDefault();
if (text == null) {
const intl = tmp(1114).intl;
text = intl.string(tmp(1114).t.sEAnVH);
}
let tmp4Result;
if (flag) {
obj = { variant: "text-xs/semibold", color: "text-overlay-light", allowFontScaling: false, children: null };
obj[3] = text;
tmp4Result = tmp4(tmp(4556).Text, obj);
}
obj = { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null };
let tmp6;
if (!flag) {
tmp6 = text;
}
obj[1] = tmp6;
obj[2] = text;
let str = "md";
if (flag) {
str = "sm";
}
obj[4] = str;
obj[6] = jsx(NitroWheelIcon.NitroWheelIcon, { size: "sm", color: "white" });
obj[7] = function onPress() {
if (closure_0 != null) {
tmp(closure_1_5.UNLOCK_WITH_NITRO);
}
callback2();
};
obj[8] = stateFromStores;
return jsx(CollapsingText.BaseTextButton, { textElement: tmp4Result, text: null, accessibilityLabel: null, variant: "primary", size: null, grow: true, icon: null, onPress: null, disabled: null });
};