'use strict';

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

var React = require('react');
var Divider$1 = require('./Divider.scss.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

const Divider = ({
  borderColor = 'border-subdued',
  borderWidth = '1'
}) => {
  const borderColorValue = borderColor === 'transparent' ? borderColor : `var(--p-color-${borderColor})`;
  return /*#__PURE__*/React__default["default"].createElement("hr", {
    className: Divider$1["default"].Divider,
    style: {
      borderBlockStart: `var(--p-border-width-${borderWidth}) solid ${borderColorValue}`
    }
  });
};

exports.Divider = Divider;
