({ child, viewer }: TopicChildProps)
| 97 | } |
| 98 | |
| 99 | function 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 | |
| 123 | function renderRepoOwnership(topic: TopicType) { |
| 124 | const repoColors = topic.repoTopics.map((repoTopic) => repoTopic.displayColor as Color) |
nothing calls this directly
no outgoing calls
no test coverage detected