MCPcopy Create free account
hub / github.com/emwalker/digraph / TopicPage

Function TopicPage

client/src/components/TopicPage/index.tsx:46–65  ·  view source on GitHub ↗
({ match: { location }, view }: TopicPageProps)

Source from the content-addressed store, hash-verified

44}
45
46export function TopicPage({ match: { location }, view }: TopicPageProps) {
47 if (!view || !view.topic || !view.viewer) return <div>Loading ...</div>
48
49 if (location.query.q) {
50 return (
51 <TopicSearchPage
52 topic={view.topic}
53 viewer={view.viewer}
54 />
55 )
56 }
57
58 return (
59 <ViewTopicPage
60 location={location}
61 topic={view.topic}
62 viewer={view.viewer}
63 />
64 )
65}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected