()
| 140 | () => details()[1], |
| 141 | ); |
| 142 | const content = () => { |
| 143 | const [relationships, store, localTableId, remoteTableId] = details(); |
| 144 | const params = getParams( |
| 145 | props.idColumn ?? true, |
| 146 | cells, |
| 147 | localTableId, |
| 148 | remoteTableId, |
| 149 | props.relationshipId, |
| 150 | relationships, |
| 151 | store, |
| 152 | props.extraCellsBefore, |
| 153 | props.extraCellsAfter, |
| 154 | ); |
| 155 | return ( |
| 156 | <table class={props.className}> |
| 157 | {isFalse(props.headerRow) ? null : ( |
| 158 | <thead> |
| 159 | <tr> |
| 160 | {extraHeaders(props.extraCellsBefore)} |
| 161 | {isFalse(props.idColumn) ? null : ( |
| 162 | <> |
| 163 | <th>{localTableId}.Id</th> |
| 164 | <th>{remoteTableId}.Id</th> |
| 165 | </> |
| 166 | )} |
| 167 | {objToArray(cells(), (cell) => ( |
| 168 | <th>{cell.label}</th> |
| 169 | ))} |
| 170 | {extraHeaders(props.extraCellsAfter)} |
| 171 | </tr> |
| 172 | </thead> |
| 173 | )} |
| 174 | <tbody> |
| 175 | {arrayMap(rowIds(), (localRowId) => |
| 176 | RelationshipInHtmlRow({localRowId, params}), |
| 177 | )} |
| 178 | </tbody> |
| 179 | </table> |
| 180 | ); |
| 181 | }; |
| 182 | return <>{content()}</>; |
| 183 | }; |
no test coverage detected
searching dependent graphs…