var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; import React from 'react'; import { View, Platform, StyleSheet, } from 'react-native'; import { normalizeText } from '../helpers'; import { fonts, withTheme } from '../config'; import Text from '../text/Text'; import Button from '../buttons/Button'; import Icon from '../icons/Icon'; const PricingCard = (props) => { var _a, _b, _c; const { theme } = props, rest = __rest(props, ["theme"]); const { containerStyle, wrapperStyle, title, price, info, button, color = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.primary, titleStyle, pricingStyle, infoStyle, onButtonPress } = rest, attributes = __rest(rest, ["containerStyle", "wrapperStyle", "title", "price", "info", "button", "color", "titleStyle", "pricingStyle", "infoStyle", "onButtonPress"]); return ( {title} {price} {info === null || info === void 0 ? void 0 : info.map((item) => { var _a; return ( {item} ); })} {React.isValidElement(button) ? (button) : ()} ); }; const PricingButton = (props) => { const { title, buttonStyle, color, titleStyle, onButtonPress, icon } = props, buttonProps = __rest(props, ["title", "buttonStyle", "color", "titleStyle", "onButtonPress", "icon"]); return (