import{useRef as o}from"react";import{useKeyboardButtonPressedFunc as e}from"../../../../shared/dist/hooks/useKeyboardButtonPressedFunc.js";import{useMergeRef as i}from"../../../../shared/dist/hooks/useMergeRef.js";import{getTestId as s}from"../../../../shared/dist/tests/test-ids-utils.js";import{ComponentDefaultTestId as d}from"../../../../shared/dist/tests/constants.js";import{NOOP as a}from"../../../../shared/dist/utils/function-utils.js";function t(t,r){var n=t.onClick,u=void 0===n?a:n,l=t.onMouseDown,p=void 0===l?a:l,v=t.onMouseEnter,m=void 0===v?a:v,f=t.onMouseLeave,h=void 0===f?a:f,b=t.disabled,c=void 0!==b&&b,M=t.id,j=t["data-testid"],x=t.role,L=void 0===x?"button":x,k=t.tabIndex,C=void 0===k?0:k,E=t.ariaLabel,w=t.ariaHidden,D=t.ariaHasPopup,I=t.ariaExpanded,K=e(u),y=o(null),B=void 0===D?void 0:!!D;return{ref:i(r,y),id:M,"data-testid":j||s(d.CLICKABLE,M),onClick:c?void 0:u,onKeyDown:c?void 0:K,onMouseDown:p,onMouseEnter:m,onMouseLeave:h,tabIndex:c?-1:Number(C),role:L,"aria-label":E,"aria-hidden":w,"aria-haspopup":B,"aria-expanded":I}}export{t as default};
//# sourceMappingURL=useClickableProps.js.map
