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

Function headingDetail

client/src/components/TopicPage/ViewTopicPage/index.tsx:136–152  ·  view source on GitHub ↗
(topic: TopicType)

Source from the content-addressed store, hash-verified

134}
135
136function headingDetail(topic: TopicType) {
137 const length = topic.displaySynonyms.length
138
139 if (length < 2) return <div>{renderRepoOwnership(topic)}</div>
140
141 return (
142 <div>
143 <div className="displaySynonyms h6">
144 {topic.displaySynonyms.map(({ name }) => (
145 <span key={name} className="synonym">{name}</span>
146 ))}
147 </div>
148
149 {renderRepoOwnership(topic)}
150 </div>
151 )
152}
153
154const renderNotification = () => (
155 <div className="Box p-3 mt-3">

Callers 1

ViewTopicPageFunction · 0.85

Calls 1

renderRepoOwnershipFunction · 0.85

Tested by

no test coverage detected