'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var clsx = require('clsx');
require('react');
var jsxRuntime = require('react/jsx-runtime');

const Divider = ({
  className,
  isContent = false,
  testId,
  level = 'section',
  ...props
}) => {
  const levelClass = level && level !== 'section' ? `wds-Divider--${level}` : '';
  const commonProps = {
    className: clsx.clsx('wds-Divider', levelClass, className),
    'data-testid': testId
  };
  const divProps = {
    ...commonProps,
    role: 'presentation'
  };
  return isContent ? /*#__PURE__*/jsxRuntime.jsx("hr", {
    ...commonProps,
    ...props
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
    ...divProps,
    ...props
  });
};

exports.default = Divider;
//# sourceMappingURL=Divider.js.map
