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';

const Backdrop = ({
  baseClassName,
  className,
  innerRef,
  ...props
}) => /*#__PURE__*/React.createElement("div", _extends({
  ref: innerRef,
  className: classNames(baseClassName, className)
}, props));

Backdrop.propTypes = {
  /**
   * Inner ref handler.
   */
  innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
    current: PropTypes.instanceOf(HTMLElement)
  })]),

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

  /**
   * @ignore
   */
  baseClassName: PropTypes.string
};
Backdrop.defaultProps = {
  innerRef: null,
  baseClassName: `${CLS_PREFIX}overlay__backdrop`,
  className: null
};
export default Backdrop;