Outlook_Addin_LLM/node_modules/@fluentui/react-overflow/lib/useIsOverflowItemVisible.js

8 lines
301 B
JavaScript
Raw Permalink Normal View History

import { useOverflowContext } from './overflowContext';
/**
* @param id - unique identifier for the item used by the overflow manager
* @returns visibility state of an overflow item
*/ export function useIsOverflowItemVisible(id) {
return !!useOverflowContext((ctx)=>ctx.itemVisibility[id]);
}