function getPreviewColKey({ colgroups, currentColKey }) {
    let result = null;

    if (!isEmptyValue(currentColKey)) {
        const index = colgroups.findIndex((x) => x.key === currentColKey);
        if (index === 0) {
            result = currentColKey;
        } else if (index > 0) {
            result = colgroups[index - 1].key;
        }
    }
    return result;
}
@getPreviewColKey
@desc get preview column key
@param {array<object>} colgroups
@param {any} currentColKey
@return colKey