decord/source/modules/premium/components/native/NitroUpsellButton.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 10040
// Function ID: 10041
// Name: NitroUpsellButton
// Dependencies: [19, 4597, 21, 504, 5025, 8732, 576, 2]
// Module 10040 (NitroUpsellButton)
import initialize from "initialize" /* 504 */;
import nativeDefault from "native" /* 576 */;
import components_Button_Button from "components/Button/Button" /* 5025 */;
import NitroWheelIcon from "NitroWheelIcon" /* 8732 */;
import noop from "module_19" /* 19 */;
import AccessibilityStore from "AccessibilityStore" /* 4597 */;
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/premium/components/native/NitroUpsellButton.tsx");
export default noop.memo(function NitroUpsellButton(shiny) {
let flag = shiny.shiny;
({ loading, onPress, text } = shiny);
if (flag === undefined) {
flag = true;
}
let str = shiny.size;
if (str === undefined) {
str = "lg";
}
const items = [AccessibilityStore];
const stateFromStores = initialize.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
const obj2 = { text, size: str, loading, onPress, icon: null, variant: "experimental_premium-primary", shiny: null };
const tmp2 = jsx;
obj2.icon = jsx(NitroWheelIcon.NitroWheelIcon, { color: nativeDefault.colors.WHITE, size: "sm" });
if (flag) {
flag = !stateFromStores;
}
obj2.shiny = flag;
return tmp2(components_Button_Button.Button, obj2);
});