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