"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatFieldLabel = void 0;
const field_1 = require("../../../../types/field");
const item_1 = require("../../../../utils/item");
const formatFieldLabel = (fieldId, fieldsMap) => {
    const field = fieldsMap[fieldId];
    if (field && (0, field_1.isField)(field)) {
        return (0, item_1.getItemLabelWithoutTableName)(field);
    }
    return (0, field_1.friendlyName)(fieldId);
};
exports.formatFieldLabel = formatFieldLabel;
//# sourceMappingURL=formatFieldLabel.js.map