"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLayoutSortViewItems = void 0;
const getLayoutSortViewItems = (layout, api) => {
    const columnIdToFriendlyName = (columnId) => {
        return api.columnApi.getFriendlyNameForColumnId(columnId);
    };
    return {
        name: 'Sort',
        values: (layout.ColumnSorts ?? []).map((customSort) => `[${columnIdToFriendlyName(customSort.ColumnId)}: ${customSort.SortOrder}]`),
    };
};
exports.getLayoutSortViewItems = getLayoutSortViewItems;
