import{__rest as o,__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import{Check as i,X as a}from"lucide-react";var l={approve:{color:"#22C55E"},reject:{color:"#EF4444"}},s=function(s){var u=s.text,d=s.variant,c=s.type,p=void 0===c?"button":c,f=s.disabled,m=void 0!==f&&f,v=s.style,b=s.onBlur,x=s.onFocus,y=s.onMouseEnter,h=s.onMouseLeave,g=o(s,["text","variant","type","disabled","style","onBlur","onFocus","onMouseEnter","onMouseLeave"]),M="approve"===d?i:a,E=r(!1),F=E[0],w=E[1],B=r(!1),L=B[0],j=B[1],k=e(e({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:m?"not-allowed":"pointer",opacity:m?.5:F?.8:1,outline:"none",transition:"opacity 150ms ease-in-out, box-shadow 150ms ease-in-out",boxShadow:L?"0 0 0 2px ".concat(l[d].color,", 0 0 0 4px #ffffff"):void 0},l[d]),v);return n("button",e({type:p,disabled:m,style:k,onFocus:function(o){j(!0),null==x||x(o)},onBlur:function(o){j(!1),null==b||b(o)},onMouseEnter:function(o){w(!0),null==y||y(o)},onMouseLeave:function(o){w(!1),null==h||h(o)}},g,{children:[t(M,{size:16,strokeWidth:2.25,"aria-hidden":"true"}),t("span",{children:u})]}))};export{s as default};
//# sourceMappingURL=ApprovalActionButton.js.map
