File size: 570 Bytes
181e22f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from 'react';
import PropTypes from 'prop-types';
import styles from './SloganCard.cm.styl';

function SloganCard({ title, desc, icon }) {
  return (
    <div className={styles.card}>
      <div className={styles.title}>
        {icon}
        <span className={styles.titleText}>{title}</span>
      </div>
      <div className={styles.desc}>
        {desc}
      </div>
    </div>
  );
}

SloganCard.defaultProps = {};

SloganCard.propTypes = {
  title: PropTypes.string,
  desc: PropTypes.string,
  icon: PropTypes.element,
};

export default SloganCard;