decord/source/modules/premium/components/native/NitroUpsellButton.tsx
2026-08-27 16:17:25 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 8892
// Function ID: 8893
// Dependencies: [19, 4437, 21, 589, 4880, 8028, 712, 2]
// Module 8892
import initialize from "initialize" /* 589 */;
import ThemesDefault from "Themes" /* 712 */;
import Button from "Button" /* 4880 */;
import NitroWheelIcon from "NitroWheelIcon" /* 8028 */;
import closure_3 from "maybeApplyNoTextColorForLightCustomTheme" /* 4437 */;
import { jsx } from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
require = arg1;
const memoResult = importAllResult.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";
}
let obj = initialize;
const items = [closure_3];
const stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
obj = { text, size: str, loading, onPress, icon: null, variant: "experimental_premium-primary", shiny: null };
obj = { color: ThemesDefault.colors.WHITE, size: "sm" };
obj[4] = jsx(NitroWheelIcon.NitroWheelIcon, { color: ThemesDefault.colors.WHITE, size: "sm" });
if (flag) {
flag = !stateFromStores;
}
obj[6] = flag;
return jsx(Button.Button, { color: ThemesDefault.colors.WHITE, size: "sm" });
});
const result = require("set").fileFinishedImporting("modules/premium/components/native/NitroUpsellButton.tsx");
export default memoResult;