({
item,
state,
children
}: {
item: Node<object>;
state: TableState<object>;
children: ReactNode;
})
| 71 | } |
| 72 | |
| 73 | function TableHeaderRow({ |
| 74 | item, |
| 75 | state, |
| 76 | children |
| 77 | }: { |
| 78 | item: Node<object>; |
| 79 | state: TableState<object>; |
| 80 | children: ReactNode; |
| 81 | }) { |
| 82 | let ref = useRef<HTMLTableRowElement>(null); |
| 83 | /*- begin highlight -*/ |
| 84 | let {rowProps} = useTableHeaderRow({node: item}, state, ref); |
| 85 | /*- end highlight -*/ |
| 86 | return ( |
| 87 | <tr {...rowProps} ref={ref}> |
| 88 | {children} |
| 89 | </tr> |
| 90 | ); |
| 91 | } |
| 92 | |
| 93 | function TableColumnHeader({column, state}: {column: Node<object>; state: TableState<object>}) { |
| 94 | let ref = useRef<HTMLTableCellElement>(null); |
nothing calls this directly
no test coverage detected