'use client';
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("../../common/error-boundary.cjs"),t=require("@heroui/react"),r=require("@heroicons/react/24/outline"),m=require("../../../../hooks/use-config.cjs"),f=u.withErrorBoundary(function({status:i,email:s,onRetry:n,className:c}){const{components:a}=m.useConfig(),l=a.Button??t.Button,o=(()=>{switch(i){case"sent":return{color:"primary",icon:e.jsx(r.EnvelopeIcon,{className:"h-4 w-4"}),message:`Verification code sent to ${s}`};case"verified":return{color:"success",icon:e.jsx(r.CheckCircleIcon,{className:"h-4 w-4"}),message:`Email ${s} verified successfully`};case"error":return{color:"danger",icon:e.jsx(r.XCircleIcon,{className:"h-4 w-4"}),message:"Verification failed"};case"expired":return{color:"warning",icon:e.jsx(r.XCircleIcon,{className:"h-4 w-4"}),message:"Verification code expired"};default:return{color:"default",icon:e.jsx(r.EnvelopeIcon,{className:"h-4 w-4"}),message:"Email verification"}}})();return e.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg ${c||""}`,children:[e.jsx("div",{className:"flex items-center gap-3",children:e.jsx(t.Chip,{color:o.color,variant:"flat",startContent:o.icon,children:o.message})}),(i==="error"||i==="expired")&&n&&e.jsx(l,{size:"sm",color:"primary",variant:"flat",onClick:n,startContent:e.jsx(r.ArrowPathIcon,{className:"h-3 w-3"}),children:"Retry"})]})});exports.EmailVerificationStatus=f;
//# sourceMappingURL=email-verification-status.cjs.map
