import _extends from "@babel/runtime/helpers/extends";
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { CLS_PREFIX } from '../../constants';
import MenuBaseItem from './MenuBaseItem';
/**
 * `MenuHeader` is a part of [Menu](#!/Menu) component.
 * @since 0.0.57
 */

const MenuHeader = ({
  baseClassName,
  className,
  children,
  ...props
}) => /*#__PURE__*/React.createElement(MenuBaseItem, _extends({
  className: classNames(baseClassName, className),
  role: "none"
}, props), children);

MenuHeader.propTypes = {
  /**
   * Content of the `MenuHeader`.
   * @since 0.0.57
   */
  children: PropTypes.node,

  /**
   * @ignore
   */
  className: PropTypes.string,

  /**
   * @ignore
   */
  baseClassName: PropTypes.string
};
MenuHeader.defaultProps = {
  children: null,
  className: null,
  baseClassName: `${CLS_PREFIX}menu__header`
};
export default MenuHeader;