import React, { useMemo } from 'react';
import { CollectionTableActionsColumn } from '../CollectionTableActionsColumn';
export function useRenderActionCellColumn(params) {
    const { collection, actionCell, sticky } = params;
    return useMemo(() => {
        if (actionCell == null) {
            return null;
        }
        return (keyedItem, index) => {
            return (React.createElement(CollectionTableActionsColumn, { index: index, sticky: sticky, collection: collection, keyedItem: keyedItem, actionCell: actionCell }));
        };
    }, [sticky, actionCell]);
}
//# sourceMappingURL=useRenderActionCellColumn.js.map