import React from 'react';
import PropTypes from 'prop-types';
import ReactBreadcrumb from 'react-bootstrap/Breadcrumb';

function Breadcrumb(props) {
  const sections = props.sections.map(sec => /*#__PURE__*/React.createElement(ReactBreadcrumb.Item, {
    onClick: sec.onClick,
    href: sec.href,
    key: sec.key
  }, sec.content));
  return /*#__PURE__*/React.createElement(ReactBreadcrumb, {
    icon: "right angle"
  }, sections);
}

Breadcrumb.propTypes = {
  sections: PropTypes.array
};

export { Breadcrumb as B };
//# sourceMappingURL=index-f3799490.js.map
