MCPcopy Create free account
hub / github.com/clintonwoo/hackernews-react-graphql / ThreadsPage

Function ThreadsPage

pages/threads.tsx:12–27  ·  view source on GitHub ↗
(props: IThreadsPageProps)

Source from the content-addressed store, hash-verified

10}
11
12export function ThreadsPage(props: IThreadsPageProps): JSX.Element {
13 const { router } = props;
14
15 const pageNumber = (router.query && +router.query.p) || 0;
16
17 return (
18 <MainLayout currentUrl={router.pathname}>
19 <NewsFeedView
20 currentUrl={router.pathname}
21 first={30}
22 newsItems={sampleData.newsItems}
23 skip={pageNumber * 30}
24 />
25 </MainLayout>
26 );
27}
28
29export default withDataAndRouter(ThreadsPage);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected