"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _instantsearchUiComponents = require("instantsearch-ui-components");
var _preact = require("preact");
var _formatNumber = require("../../lib/formatNumber");
var defaultTemplates = {
  item: function item(_ref) {
    var cssClasses = _ref.cssClasses,
      url = _ref.url,
      label = _ref.label,
      count = _ref.count;
    return (0, _preact.h)("a", {
      className: (0, _instantsearchUiComponents.cx)(cssClasses.link),
      href: url
    }, (0, _preact.h)("span", {
      className: (0, _instantsearchUiComponents.cx)(cssClasses.label)
    }, label), (0, _preact.h)("span", {
      className: (0, _instantsearchUiComponents.cx)(cssClasses.count)
    }, (0, _formatNumber.formatNumber)(count)));
  },
  showMoreText: function showMoreText(_ref2) {
    var isShowingMore = _ref2.isShowingMore;
    return isShowingMore ? 'Show less' : 'Show more';
  }
};
var _default = exports.default = defaultTemplates;