"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getColumnsMap = void 0;
const getColumnsMap = (columns) => columns.reduce((acc, { field, ...childrenColumnsOptions }) => {
    if (field) {
        return {
            // biome-ignore lint/performance/noAccumulatingSpread: <>
            ...acc,
            [field]: childrenColumnsOptions,
        };
    }
    return acc;
}, {});
exports.getColumnsMap = getColumnsMap;
