"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.BreadCrumbItem = void 0;

var _react = _interopRequireDefault(require("react"));

var _ = require("../../..");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const BreadCrumbItem = props => {
  const {
    children,
    isCurrentPage,
    ...remainingProps
  } = props;
  const computedProps = { ...remainingProps,
    isUnderlined: false
  };
  return /*#__PURE__*/_react.default.createElement(_.Flex, remainingProps, _react.default.Children.map(children, child => {
    return /*#__PURE__*/_react.default.cloneElement(child, isCurrentPage ? computedProps : remainingProps);
  }));
};

exports.BreadCrumbItem = BreadCrumbItem;
//# sourceMappingURL=BreadCrumbItem.js.map