import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { Badge, Button } from 'reactstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { isIterableArray } from '../../helpers/utils'; const PricingRow = ({ children }) => (
  • {children}
  • ); PricingRow.propTypes = { children: PropTypes.node }; const PricingCard = ({ type, description, price, featureTitle, features, button, bottomButtonText, isYearly, backgroundColor }) => { const plan = isYearly ? 'year' : 'month'; return (

    {type}

    {description}

    $ {price[plan]} / {plan}


    {featureTitle}
    ); }; PricingCard.propTypes = { type: PropTypes.string.isRequired, description: PropTypes.string.isRequired, price: PropTypes.object.isRequired, featureTitle: PropTypes.string.isRequired, features: PropTypes.array.isRequired, button: PropTypes.object.isRequired, bottomButtonText: PropTypes.string.isRequired, isYearly: PropTypes.bool.isRequired, backgroundColor: PropTypes.string }; export default PricingCard;