Files
papercrate/frontend/src/documents/components/DocumentsListContainer.tsx
T

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>&nbsp;</th>
<th>Name</th>
<th>Issued</th>
<th>Added</th>
</tr>
</thead>
<tbody>{children}</tbody>
</table>
);
};
export default DocumentsListContainer;