"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),n=require("react"),t=require("lucide-react"),r={approve:{color:"#22C55E"},reject:{color:"#EF4444"}};exports.default=function(s){var i=s.text,a=s.variant,u=s.type,l=void 0===u?"button":u,d=s.disabled,c=void 0!==d&&d,p=s.style,f=s.onBlur,x=s.onFocus,v=s.onMouseEnter,b=s.onMouseLeave,m=e.__rest(s,["text","variant","type","disabled","style","onBlur","onFocus","onMouseEnter","onMouseLeave"]),y="approve"===a?t.Check:t.X,_=n.useState(!1),g=_[0],h=_[1],M=n.useState(!1),j=M[0],E=M[1],q=e.__assign(e.__assign({display:"inline-flex",alignItems:"center",gap:"0.375rem",borderRadius:"0.375rem",border:"1px solid transparent",backgroundColor:"transparent",padding:"0.25rem 0.5rem",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",cursor:c?"not-allowed":"pointer",opacity:c?.5:g?.8:1,outline:"none",transition:"opacity 150ms ease-in-out, box-shadow 150ms ease-in-out",boxShadow:j?"0 0 0 2px ".concat(r[a].color,", 0 0 0 4px #ffffff"):void 0},r[a]),p);return o.jsxs("button",e.__assign({type:l,disabled:c,style:q,onFocus:function(e){E(!0),null==x||x(e)},onBlur:function(e){E(!1),null==f||f(e)},onMouseEnter:function(e){h(!0),null==v||v(e)},onMouseLeave:function(e){h(!1),null==b||b(e)}},m,{children:[o.jsx(y,{size:16,strokeWidth:2.25,"aria-hidden":"true"}),o.jsx("span",{children:i})]}))};
//# sourceMappingURL=ApprovalActionButton.js.map
