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

Function makeOptions

client/src/components/ui/EditParentTopicList/index.tsx:12–17  ·  view source on GitHub ↗
(matches: SelectedTopics)

Source from the content-addressed store, hash-verified

10const color = '#0366d6'
11
12export const makeOptions = (matches: SelectedTopics): readonly TopicOption[] => {
13 return matches.map((match) => match
14 ? { value: match.value, label: match.label, color }
15 : { value: 'missing', label: '<missing>', color: '' },
16 ) as TopicOption[]
17}
18
19type LoadOptionsType = (str: string) => Promise<readonly TopicOption[]>
20

Callers 4

nextFunction · 0.90
RepoTopicParentTopicsFunction · 0.90
nextFunction · 0.90
EditRepoLinkParentTopicsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected