import React, { useCallback } from 'react';
import { GridItem } from './GridItem';
export function useRenderItem(params) {
    const { renderItem, state, renderAddItem, dragAndDrop, actionCell, preset = 'title', } = params;
    return useCallback((index, { itemKey: _itemKey, index2d } = {}) => (React.createElement(GridItem, { state: state, index: index, rowIndex: index2d?.rowIndex, columnIndex: index2d?.columnIndex, renderItem: renderItem, actionCell: actionCell, renderAddItem: renderAddItem, dragAndDrop: dragAndDrop, preset: preset })), [renderItem, actionCell, renderAddItem, dragAndDrop, preset]);
}
//# sourceMappingURL=useRenderItem.js.map