decord/source/modules/collectibles/native/UnlockWithNitroButton.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

70 lines
2.6 KiB
TypeScript

// Module ID: 13095
// Function ID: 13096
// Name: UnlockWithNitroButton
// Dependencies: [19, 7177, 7491, 675, 21, 586, 7180, 13080, 1233, 4937, 4477, 8592, 2]
// Exports: UnlockWithNitroButton
// Module 13095 (UnlockWithNitroButton)
import noopAll from "noop" /* 19 */;
import initialize from "initialize" /* 586 */;
import CollapsingText from "CollapsingText" /* 4937 */;
import NitroWheelIcon from "NitroWheelIcon" /* 8592 */;
import useOpenNitroSubscribeActionSheetDefault from "useOpenNitroSubscribeActionSheet" /* 13080 */;
import closure_3 from "updateProduct" /* 7177 */;
import closure_4 from "map" /* 7491 */;
import { ShopCtaEnum } from "items" /* 675 */;
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(1233).intl;
text = intl.string(tmp(1233).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(4477).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 });
};