"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectedFeatureCount = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var i18n_1 = require("../api/i18n");
/**
 * Displays the number of selected features on the map
 */
var SelectedFeatureCount = function (props) {
    var format = props.format || (0, i18n_1.tr)("FMT_SELECTION_COUNT", props.locale);
    var label;
    if (props.summary) {
        label = (0, i18n_1.fmt)(format, props.summary);
    }
    return React.createElement("div", { className: "status-bar-component component-selected-feature-count", style: props.style }, label);
};
exports.SelectedFeatureCount = SelectedFeatureCount;
//# sourceMappingURL=selected-feature-count.js.map