8 lines
301 B
JavaScript
8 lines
301 B
JavaScript
|
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]);
|
||
|
}
|