import { useMemo } from 'react';
import { useRenderActionCellColumn } from './useRenderActionCellColumn';
import { useActionCellColumnBase } from './useActionCellColumnBase';
export function useActionCellColumn(params) {
    const { collection, actionCell, actionCellProps, actionCellWidth, sticky } = params;
    const baseColumn = useActionCellColumnBase({
        actionCellProps,
        actionCellWidth,
    });
    const render = useRenderActionCellColumn({
        actionCell,
        sticky,
        collection,
    });
    return useMemo(() => {
        if (render == null) {
            return null;
        }
        return {
            ...baseColumn,
            render,
        };
    }, [baseColumn, render]);
}
//# sourceMappingURL=useActionCellColumn.js.map