"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _propTypes = _interopRequireDefault(require("prop-types"));

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

var _classnames = _interopRequireDefault(require("classnames"));

var _iconsReact = require("@wfp/icons-react");

var _js = require("../../globals/js");

var _excluded = ["className", "hometext"];
var prefix = _js.settings.prefix;

var BreadcrumbHome = function BreadcrumbHome(_ref) {
  var className = _ref.className,
      hometext = _ref.hometext,
      other = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  var classNames = (0, _classnames.default)("".concat(prefix, "--breadcrumb-home"), className);
  return /*#__PURE__*/_react.default.createElement(_iconsReact.HomeGlyph //icon={iconHome}
  , (0, _extends2.default)({
    fill: "#0b77c2",
    width: "14",
    height: "14",
    description: hometext,
    className: classNames
  }, other));
};

BreadcrumbHome.propTypes = {
  /**
   * Specify an optional className to be added to the `Home` Icon
   */
  className: _propTypes.default.string,

  /**
   * Specify an optional text for the `Home` Icon
   */
  hometext: _propTypes.default.string
};
var _default = BreadcrumbHome;
exports.default = _default;