34 lines
787 B
TypeScript
34 lines
787 B
TypeScript
import React from 'react';
|
|
|
|
interface DocumentsListContainerProps {
|
|
children: React.ReactNode;
|
|
clearSelection: () => void;
|
|
[key: string]: any;
|
|
}
|
|
|
|
const DocumentsListContainer: React.FC<DocumentsListContainerProps> = ({
|
|
children,
|
|
clearSelection,
|
|
...props
|
|
}) => {
|
|
return (
|
|
<table aria-multiselectable="true" {...props}>
|
|
<thead
|
|
onClick={() => {
|
|
clearSelection();
|
|
}}
|
|
>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Name</th>
|
|
<th>Issued</th>
|
|
<th>Added</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>{children}</tbody>
|
|
</table>
|
|
);
|
|
};
|
|
|
|
export default DocumentsListContainer;
|