35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
// Module ID: 8560
|
|
// Function ID: 68043
|
|
// Dependencies: [31, 4122, 33, 566, 4543, 7871, 689, 2]
|
|
|
|
// Module 8560
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
import { jsx } from "jsxProd";
|
|
import importAllResult from "result";
|
|
|
|
const require = arg1;
|
|
const memoResult = require("result").memo(function NitroUpsellButton(shiny) {
|
|
let loading;
|
|
let onPress;
|
|
let text;
|
|
let flag = shiny.shiny;
|
|
({ loading, onPress, text } = shiny);
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
let obj = require(566) /* initialize */;
|
|
const items = [_isNativeReflectConstruct];
|
|
const stateFromStores = obj.useStateFromStores(items, () => outer1_3.useReducedMotion);
|
|
obj = { text, size: "lg", loading, onPress };
|
|
obj = { color: importDefault(689).colors.WHITE, size: "sm" };
|
|
obj.icon = jsx(require(7871) /* NitroWheelIcon */.NitroWheelIcon, { color: importDefault(689).colors.WHITE, size: "sm" });
|
|
obj.variant = "experimental_premium-primary";
|
|
if (flag) {
|
|
flag = !stateFromStores;
|
|
}
|
|
obj.shiny = flag;
|
|
return jsx(require(4543) /* Button */.Button, { color: importDefault(689).colors.WHITE, size: "sm" });
|
|
});
|
|
const result = require("jsxProd").fileFinishedImporting("modules/premium/components/native/NitroUpsellButton.tsx");
|
|
|
|
export default memoResult;
|