( extraValueCells: ExtraValueCell[] | (() => ExtraValueCell[] | undefined) = [], extraValueCellProps: ValueProps, )
| 17 | import {extraHeaders} from './common/index.tsx'; |
| 18 | |
| 19 | const extraValueCells = ( |
| 20 | extraValueCells: ExtraValueCell[] | (() => ExtraValueCell[] | undefined) = [], |
| 21 | extraValueCellProps: ValueProps, |
| 22 | ) => |
| 23 | arrayMap(getValue(extraValueCells) ?? [], (extraValueCell) => { |
| 24 | const Component = extraValueCell.component; |
| 25 | return ( |
| 26 | <td class={EXTRA}> |
| 27 | <Component {...extraValueCellProps} /> |
| 28 | </td> |
| 29 | ); |
| 30 | }); |
| 31 | |
| 32 | export const ValuesInHtmlTable: typeof ValuesInHtmlTableDecl = ( |
| 33 | props: ValuesInHtmlTableProps & HtmlTableProps, |
no test coverage detected
searching dependent graphs…