acupedia-store-ui/src/components/auth/PasswordUpdatedModal.tsx

34 lines
1.5 KiB
TypeScript

import React from 'react';
import { CheckCircle } from 'lucide-react';
interface PasswordUpdatedModalProps {
isOpen: boolean;
onClose: () => void;
}
export const PasswordUpdatedModal: React.FC<PasswordUpdatedModalProps> = ({ isOpen, onClose }) => {
if (!isOpen) return null;
return (
<div className="fixed inset-0 z-[200] flex items-center justify-center p-4 bg-slate-950/70 backdrop-blur-md animate-in fade-in duration-200">
<div className="relative w-full max-w-sm bg-slate-900 border border-emerald-500/40 rounded-3xl p-6 shadow-2xl text-center space-y-4 text-white">
<div className="h-14 w-14 rounded-2xl bg-emerald-950/80 border border-emerald-500/30 text-emerald-400 flex items-center justify-center mx-auto shadow-[0_0_25px_rgba(16,185,129,0.3)]">
<CheckCircle className="h-8 w-8" />
</div>
<div className="space-y-1.5">
<h3 className="text-lg font-bold text-white">Password Updated!</h3>
<p className="text-xs text-slate-400 leading-relaxed font-medium">
Your password has been securely updated. You can now use your new password across the storefront and mobile application.
</p>
</div>
<button
onClick={onClose}
className="w-full py-2.5 bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs rounded-xl transition-colors shadow-lg shadow-emerald-600/20"
>
Continue to Storefront
</button>
</div>
</div>
);
};