# All files / composer/components Button.jsx

75% Statements 3/4
100% Branches 0/0
0% Functions 0/1
75% Lines 3/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21

    7x

    7x

    7x

     import React from 'react';
    import PropTypes from 'prop-types';
    import styles from './css/BaseButton.css';

    const Button = ({ className, ...restProps }) => (
      <button
        className={`${styles.button} ${className}`}
        {...restProps}
      />
    );

    Button.propTypes = {
      className: PropTypes.string,
    };

    Button.defaultProps = {
      className: '',
    };

    export default Button;