({hideBorder, styles, ...props}: TableCellProps)
| 122 | } |
| 123 | |
| 124 | export function TableCell({hideBorder, styles, ...props}: TableCellProps) { |
| 125 | let align = 'center'; |
| 126 | if (hideBorder) { |
| 127 | align = 'bottom'; |
| 128 | } else if (props.colSpan) { |
| 129 | align = 'top'; |
| 130 | } |
| 131 | return ( |
| 132 | <td |
| 133 | {...props} |
| 134 | className={mergeStyles(tableCell({isBorderHidden: hideBorder, align}), styles)} |
| 135 | /> |
| 136 | ); |
| 137 | } |
nothing calls this directly
no test coverage detected