import { useContext } from 'react';
import { ConfigContext } from '../../../ConfigProvider';
export const useLogic = ({ minDisplayRows, }) => {
    const { components } = useContext(ConfigContext);
    const disableMinHeight = components?.dataGrid?.defaultProps?.disableMinHeight;
    const bodyCssVars = !disableMinHeight && minDisplayRows
        ? {
            '--min-display-rows': minDisplayRows,
        }
        : {};
    return {
        disableMinHeight,
        bodyCssVars,
    };
};
