/*!
 * Copyright (c) Microsoft. All rights reserved.
 * Licensed under the MIT license. See LICENSE file in the project.
 */ import { useMemo } from 'react';
export function useColumnCounts(table, visibleColumns) {
    return useMemo(()=>{
        const total = table.numCols();
        const visible = visibleColumns ? visibleColumns.length : total;
        const hidden = total - visible;
        return {
            total,
            visible,
            hidden
        };
    }, [
        table,
        visibleColumns
    ]);
}
