import { isViewMode } from '@reltio/mdm-sdk';
import { useMdmEntity, useMdmMode, useMdmSearchNavigationData } from '../contexts/MdmModuleContext';
export var useSearchNavigationVisibility = function () {
    var cache = (useMdmSearchNavigationData() || {}).cache;
    var mode = useMdmMode();
    var entity = useMdmEntity();
    return isViewMode(mode) && (cache === null || cache === void 0 ? void 0 : cache.includes(entity === null || entity === void 0 ? void 0 : entity.uri));
};
