Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
// Module ID: 10002
|
|
// Function ID: 10003
|
|
// Name: NitroUpsellButton
|
|
// Dependencies: [19, 4566, 21, 504, 4989, 8695, 576, 2]
|
|
|
|
// Module 10002 (NitroUpsellButton)
|
|
import initialize from "initialize" /* 504 */;
|
|
import nativeDefault from "native" /* 576 */;
|
|
import components_Button_Button from "components/Button/Button" /* 4989 */;
|
|
import NitroWheelIcon from "NitroWheelIcon" /* 8695 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4566 */;
|
|
|
|
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);
|
|
});
|