import { useMemo } from 'react'; import { TableColumn as TableColumnWSR } from '@wix/design-system/dist/types/Table'; export interface UseActionCellColumnBaseParams { actionCellWidth?: string | number; actionCellProps?: Partial, 'render' | 'style'>>; } export function useActionCellColumnBase( params: UseActionCellColumnBaseParams, ) { const { actionCellProps, actionCellWidth } = params; return useMemo(() => { return { title: '', id: 'cairo-action-cell', key: 'cairo-action-cell', width: actionCellWidth ?? '48px', style: { justifyContent: 'flex-end' }, ...actionCellProps, }; }, [actionCellProps, actionCellWidth]); }