text: import PropTypes from 'prop-types';
  import React from 'react';
  import classnames from 'classnames';
  import settings from '../../globals/js/settings';
  
  const { prefix } = settings;
  
  const SelectItemGroup = ({
    children,
    className,
    disabled,
    label,
    ...other
  }) => {
    const classNames = classnames(`${prefix}--select-optgroup`, className);
    return (
      <optgroup
        className={classNames}
        label={label}
        disabled={disabled}
        {...other}>
        {children}
      </optgroup>
    );
  };
  
  SelectItemGroup.propTypes = {
    children: PropTypes.node,
    className: PropTypes.string,
    disabled: PropTypes.bool,
    label: PropTypes.string.isRequired,
  };
  
  SelectItemGroup.defaultProps = {
    disabled: false,
    label: 'Provide label',
  };
  
  export default SelectItemGroup;
  