'use client';
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("@heroui/react"),R=require("@heroicons/react/24/outline"),h=require("../../common/error-boundary.cjs"),B=h.withErrorBoundary(function({onResend:s,disabled:c=!1,remainingTime:n=0,attempt:e=0,maxAttempts:r=3,className:d,size:u="md",radius:i="md"}){const o=n===0&&e<r,a=r-e;return t.jsx(l.Button,{color:"primary",variant:"light",size:u,radius:i,onClick:s,disabled:c||!o,className:d,startContent:o?t.jsx(R.ArrowPathIcon,{className:"h-3 w-3"}):void 0,children:n>0?`Resend in ${n}s`:e>=r?"Max attempts reached":`Resend${e>0?` (${a} left)`:""}`})});exports.ResendEmailButton=B;
//# sourceMappingURL=resend-email-button.cjs.map
