import type { MlBaseFormListCellProps, MlBaseFormListColumn, MlBaseFormListRow } from '../types'; export function safeGetCellProps({ column, cellValue, row, rowIndex, colIndex, }: { column: MlBaseFormListColumn; cellValue: any; row: MlBaseFormListRow; rowIndex: number; colIndex: number; }): MlBaseFormListCellProps { const result: MlBaseFormListCellProps = column.getCellProps?.(cellValue, row, { rowIndex, colIndex }) ?? {}; return result; }