@atlaskit/dropdown-menu
Version:
A dropdown menu displays a list of actions or options to a user.
17 lines • 440 B
JavaScript
import { createContext } from 'react';
import noop from '@atlaskit/ds-lib/noop';
/**
* __Selection store context__
*
* A context that stores the selection state of the dropdown menu items.
*/
export var SelectionStoreContext = /*#__PURE__*/createContext({
setItemState: noop,
getItemState: function getItemState() {
return undefined;
},
setGroupState: noop,
getGroupState: function getGroupState() {
return {};
}
});