MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / mapPaginationPages

Function mapPaginationPages

apps/site/components/withBlogCategories.tsx:16–19  ·  view source on GitHub ↗
(category: string, pages: number)

Source from the content-addressed store, hash-verified

14};
15
16const mapPaginationPages = (category: string, pages: number) =>
17 [...Array(pages).keys()].map(page => ({
18 url: `/blog/${category}/page/${page + 1}`,
19 }));
20
21const WithBlogCategories: FC<WithBlogCategoriesProps> = ({
22 categories,

Callers 1

WithBlogCategoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected