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

Function toKeys

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

Source from the content-addressed store, hash-verified

74 };
75
76 let toKeys = (v: MessageFeedbackValue | undefined): Iterable<string> | undefined => {
77 if (v === undefined) {
78 return undefined;
79 }
80 return v === null ? [] : [v];
81 };
82 let selectedKeys = toKeys(value);
83 let defaultSelectedKeys = toKeys(defaultValue);
84

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected