"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stripIds = void 0;
const stripIds = (fields) => fields.map((field) => {
    const { id: _id, ...rest } = field;
    if (rest.type === 'section') {
        return { ...rest, fields: (0, exports.stripIds)(rest.fields) };
    }
    return rest;
});
exports.stripIds = stripIds;
//# sourceMappingURL=stripIds.js.map
