import React, { useMemo } from 'react'; import { CollectionState, FiltersMap, KeyedItem } from '@wix/bex-core'; import { CollectionTableActionsColumn } from '../CollectionTableActionsColumn'; import { ActionCell } from './ActionCell'; export interface UseRenderActionCellColumnParams { sticky?: boolean; actionCell?: ActionCell; collection: CollectionState; } export function useRenderActionCellColumn( params: UseRenderActionCellColumnParams, ) { const { collection, actionCell, sticky } = params; return useMemo(() => { if (actionCell == null) { return null; } return (keyedItem: KeyedItem, index: number) => { return ( ); }; }, [sticky, actionCell]); }