content: /**
   * adddr (https://www.adddr.io/)
   *
   * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.txt file in the root directory of this source tree.
   */
  
  import React from 'react';
  import PropTypes from 'prop-types';
  import withStyles from 'isomorphic-style-loader/lib/withStyles';
  import s from './PricingRow.css';
  
  class PricingRow extends React.Component {
    static propTypes = {
      label: PropTypes.string.isRequired,
      free: PropTypes.string.isRequired,
      basic: PropTypes.string.isRequired,
      enterprise: PropTypes.string.isRequired,
      darkBg: PropTypes.bool.isRequired,
    };
  
    render() {
      const { label, free, basic, enterprise, darkBg } = this.props;
      const cssClass = darkBg ? s.dark : s.light;
  
      return (
        <tr className={cssClass}>
          {[label, free, basic, enterprise].map((x, i) =>
            <td key={x.label} className={i === 0 ? s.label : null}>
              {x}
            </td>,
          )}
        </tr>
      );
    }
  }
  
  export default withStyles(s)(PricingRow);
  