decord/source/modules/premium/components/native/NitroUpsellButton.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 10101
// Function ID: 10102
// Name: NitroUpsellButton
// Dependencies: [19, 4631, 21, 504, 5059, 8788, 576, 2]
// Module 10101 (NitroUpsellButton)
import initialize from "initialize" /* 504 */;
import nativeDefault from "native" /* 576 */;
import components_Button_Button from "components/Button/Button" /* 5059 */;
import NitroWheelIcon from "NitroWheelIcon" /* 8788 */;
import noop from "module_19" /* 19 */;
import AccessibilityStore from "AccessibilityStore" /* 4631 */;
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);
});