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

Function TopicChild

client/src/components/TopicPage/ViewTopicPage/index.tsx:99–121  ·  view source on GitHub ↗
({ child, viewer }: TopicChildProps)

Source from the content-addressed store, hash-verified

97}
98
99function TopicChild({ child, viewer }: TopicChildProps) {
100 if (!child) return null
101
102 if (child.__typename == 'Topic') {
103 return (
104 <Topic
105 topic={child}
106 viewer={viewer}
107 />
108 )
109 }
110
111 if (child.__typename == 'Link') {
112 return (
113 <Link
114 link={child}
115 viewer={viewer}
116 />
117 )
118 }
119
120 return null
121}
122
123function renderRepoOwnership(topic: TopicType) {
124 const repoColors = topic.repoTopics.map((repoTopic) => repoTopic.displayColor as Color)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected