import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';

const predefinedClassName = 'rv-gradient-defs';

class GradientDefs extends PureComponent {
  render() {
    const {className} = this.props;
    return (
      <defs className={`${predefinedClassName} ${className}`}>
        {this.props.children}
      </defs>
    );
  }
}

GradientDefs.displayName = 'GradientDefs';
GradientDefs.requiresSVG = true;
GradientDefs.propTypes = {
  className: PropTypes.string
};
GradientDefs.defaultProps = {
  className: ''
};

export default GradientDefs;
