decord/source/modules/premium/components/native/NitroUpsellButton.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

39 lines
1.4 KiB
TypeScript

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