Skip to content
Snippets Groups Projects
Select Git revision
  • 2b464018180fe16dcb6103a98ada8db89c4af330
  • master default protected
  • minion
  • development
4 results

index.jsx

Blame
  • index.jsx 449 B
    import PropTypes from "prop-types";
    import cs from "classnames";
    import styles from "./Card.module.scss";
    
    function Card(props) {
      const {customClass, children } = props;
      return (
        <div className={cs(styles.card, customClass )} title="Copy to Clipboard">
          {children}
        </div>
      );
    }
    
    Card.propTypes = {
      children: PropTypes.element,
      customClass: PropTypes.string,
    };
    
    Card.defaultProps = {
      customClass: "",
    }
    
    export default Card;