@atlaskit/dropdown-menu
Version:
A dropdown menu displays a list of actions or options to a user.
13 lines • 371 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 const SelectionStoreContext = /*#__PURE__*/createContext({
setItemState: noop,
getItemState: () => undefined,
setGroupState: noop,
getGroupState: () => ({})
});