decord/source/modules/premium/components/native/NitroUpsellButton.tsx

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9498
// Function ID: 9499
// Dependencies: [19, 4662, 21, 589, 4745, 7988, 712, 2]
2026-07-23 10:11:24 +00:00
2026-08-15 05:55:55 +00:00
// Module 9498
2026-07-29 08:29:29 +00:00
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const memoResult = require("noop").memo(function NitroUpsellButton(shiny) {
2026-07-23 10:11:24 +00:00
let loading;
let onPress;
let text;
let flag = shiny.shiny;
({ loading, onPress, text } = shiny);
if (flag === undefined) {
flag = true;
}
2026-08-05 07:35:12 +00:00
let str = shiny.size;
if (str === undefined) {
str = "lg";
}
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [maybeApplyNoTextColorForLightCustomTheme];
const stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
2026-08-05 07:35:12 +00:00
obj = { text, size: str, loading, onPress, icon: null, variant: "experimental_premium-primary", shiny: null };
2026-07-29 08:29:29 +00:00
obj = { color: null, size: "sm" };
obj[0] = importDefault(712).colors.WHITE;
2026-08-15 05:55:55 +00:00
obj[4] = jsx(require(7988) /* NitroWheelIcon */.NitroWheelIcon, { color: null, size: "sm" });
2026-07-23 10:11:24 +00:00
if (flag) {
flag = !stateFromStores;
}
2026-07-29 08:29:29 +00:00
obj[6] = flag;
2026-08-15 05:55:55 +00:00
return jsx(require(4745) /* Button */.Button, { color: null, size: "sm" });
2026-07-23 10:11:24 +00:00
});
const result = require("jsxProd").fileFinishedImporting("modules/premium/components/native/NitroUpsellButton.tsx");
export default memoResult;