import{useMemo as e}from"react";import{getClickableIconScreenReaderAccessProps as i}from"../../../../../packages/shared/dist/utils/screenReaderAccessHelper.js";function r(e){var r=e.isClickable,a=e.isDecorationOnly,l=e.label,s=null!=a?a:!r&&!l;return r||l?i({label:l,isDecorationOnly:s,isKeyboardAccessible:e.isKeyboardAccessible,isHoverOnly:!r&&!!l}):{role:s?void 0:"img","aria-hidden":s,tabIndex:void 0,"aria-label":a?void 0:l}}function a(i){var a=i.isClickable,l=i.label,s=i.isDecorationOnly;return e((function(){return r({isClickable:a,label:l,isDecorationOnly:s})}),[a,l,s])}export{a as default,r as getIconScreenReaderAccessProps};
//# sourceMappingURL=useIconScreenReaderAccessProps.js.map
