// @flow import * as React from "react"; import Document from "models/Document"; import DocumentListItem from "components/DocumentListItem"; import PaginatedList from "components/PaginatedList"; type Props = {| documents: Document[], fetch: (options: ?Object) => Promise, options?: Object, heading?: React.Node, empty?: React.Node, showNestedDocuments?: boolean, showCollection?: boolean, showPublished?: boolean, showPin?: boolean, showDraft?: boolean, showTemplate?: boolean, |}; const PaginatedDocumentList = React.memo(function PaginatedDocumentList({ empty, heading, documents, fetch, options, ...rest }: Props) { return ( ( )} /> ); }); export default PaginatedDocumentList;