MCPcopy Create free account
hub / github.com/adobe/react-spectrum / toKeys

Function toKeys

packages/@react-spectrum/ai/src/MessageFeedback.tsx:66–71  ·  view source on GitHub ↗
(v: MessageFeedbackValue | undefined)

Source from the content-addressed store, hash-verified

64 };
65
66 let toKeys = (v: MessageFeedbackValue | undefined): Iterable<string> | undefined => {
67 if (v === undefined) {
68 return undefined;
69 }
70 return v === null ? [] : [v];
71 };
72 let selectedKeys = toKeys(value);
73 let defaultSelectedKeys = toKeys(defaultValue);
74

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected