import{defineProperty as e}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import a from"classnames";import o,{forwardRef as i}from"react";import{noop as s}from"es-toolkit";import r from"../useClickableProps/useClickableProps.js";import d from"./Clickable.module.scss.js";var l=i((function(i,l){var t=i.elementType,n=void 0===t?"div":t,c=i.className,p=void 0===c?"":c,m=i.children,u=i.role,b=i.onClick,v=i.enableTextSelection,f=void 0!==v&&v,k=i.onMouseDown,x=i.onMouseEnter,M=i.onMouseLeave,P=i.tabIndex,j=i.disabled,C=void 0!==j&&j,E=i.style,H=r({onClick:void 0===b?s:b,onMouseDown:void 0===k?s:k,onMouseEnter:void 0===x?s:x,onMouseLeave:void 0===M?s:M,disabled:C,id:i.id,"data-testid":i["data-testid"],role:void 0===u?"button":u,tabIndex:void 0===P?"0":P,ariaLabel:i.ariaLabel,ariaHidden:i.ariaHidden,ariaHasPopup:i.ariaHasPopup,ariaExpanded:i.ariaExpanded},l),y=a(d.clickable,p,e(e({},d.disabled,C),d.disableTextSelection,!f));return o.createElement(n,Object.assign(Object.assign({},H),{className:y,style:E}),m)}));export{l as default};
//# sourceMappingURL=Clickable.js.map
