31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
// Metro module 8427 (f8428).
|
|
import { memo } from "react";
|
|
import AccessibilityStore from "../../../a11y/AccessibilityStore";
|
|
import { useStateFromStores } from "../../../../_bundle/Module589";
|
|
import { Button } from "../../../../design/components/Button/native/Button.native";
|
|
import { NitroWheelIcon } from "../../../../design/components/Icon/native/redesign/generated/NitroWheelIcon";
|
|
import Module712 from "../../../../_bundle/Module712";
|
|
const r22 = memo(function NitroUpsellButton(props) {
|
|
const { loading, onPress, text } = props;
|
|
let shiny = props.shiny;
|
|
if (shiny === void 0) {
|
|
shiny = true;
|
|
}
|
|
const stateFromStores = useStateFromStores([AccessibilityStore], () => AccessibilityStore.useReducedMotion);
|
|
const props2 = {
|
|
text,
|
|
size: "lg",
|
|
loading,
|
|
onPress,
|
|
icon: <NitroWheelIcon color={Module712.colors.WHITE} size="sm" />,
|
|
variant: "experimental_premium-primary",
|
|
shiny: null
|
|
};
|
|
if (shiny) {
|
|
shiny = !stateFromStores;
|
|
}
|
|
props2.shiny = shiny;
|
|
return <Button {...props2} />;
|
|
});
|
|
export default r22;
|