import { clsx } from 'clsx';
import 'react';
import { jsx } from 'react/jsx-runtime';

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

export { Divider as default };
//# sourceMappingURL=Divider.mjs.map
