( extraRowCells: ExtraRowCell[] = [], extraRowCellProps: RowProps, after: 0 | 1 = 0, )
| 64 | export const EDITABLE = 'editable'; |
| 65 | |
| 66 | export const extraRowCells = ( |
| 67 | extraRowCells: ExtraRowCell[] = [], |
| 68 | extraRowCellProps: RowProps, |
| 69 | after: 0 | 1 = 0, |
| 70 | ) => |
| 71 | arrayMap(extraRowCells, ({component: Component}, index) => ( |
| 72 | <td className={EXTRA} key={extraKey(index, after)}> |
| 73 | <Component {...extraRowCellProps} /> |
| 74 | </td> |
| 75 | )); |
| 76 | |
| 77 | export const extraKey = (index: number, after: 0 | 1) => |
| 78 | (after ? '>' : '<') + index; |
no test coverage detected
searching dependent graphs…