MCPcopy Create free account
hub / github.com/bytebase/bytebase / toOption

Function toOption

frontend/src/react/components/UserSelect.tsx:20–27  ·  view source on GitHub ↗
(user: User)

Source from the content-addressed store, hash-verified

18}
19
20function toOption(user: User): ComboboxOption {
21 const label = user.title || user.email;
22 return {
23 value: user.name,
24 label,
25 description: user.email && user.email !== label ? user.email : undefined,
26 };
27}
28
29export function UserSelect({
30 value,

Callers 1

UserSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected