"use strict";

exports.__esModule = true;
exports.default = void 0;
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const CATEGORIES = {
  base: _style.default.base,
  advanced: _style.default.advanced,
  coach: _style.default.coach,
  chapter: _style.default.chapter,
  scorm: _style.default.scorm,
  video: _style.default.video,
  article: _style.default.article,
  podcast: _style.default.podcast,
  course: _style.default.course,
  hidden: _style.default.hidden
};
const ContentBadge = props => {
  const {
    category,
    label
  } = props;
  return /*#__PURE__*/_react.default.createElement("span", {
    className: CATEGORIES[category]
  }, label);
};
ContentBadge.propTypes = process.env.NODE_ENV !== "production" ? {
  category: _propTypes.default.oneOf((0, _keys2.default)(CATEGORIES)),
  label: _propTypes.default.string
} : {};
var _default = exports.default = ContentBadge;
//# sourceMappingURL=index.js.map