/** * @typedef {Object} UsePaginatedBookmarksReturn * @property {boolean} isLoading flag indicating when the data are fetched * @property {Array} bookmarkData the bookmarks collection * @property {Pagination} pagination the transformed pagination data * @property {Function} setPage callback use to change the page of the paginated collection */ /** * A hook to manage a paginated API collection of bookmarks * @param {number} initialPage initial page to start navigation * @returns {UsePaginatedBookmarksReturn} data provided by the hook */ function usePaginatedBookmarks(initialPage) { // TODO: implement the hook }