You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
|
|
|
|
export default function VerificationModal({title, onConfirm, onCancel, isOpen}) {
|
|
if (!isOpen) return null;
|
|
|
|
return (
|
|
<div className="fixed inset-0 flex items-center justify-center">
|
|
<div className="glassmorphism p-6">
|
|
<h2 className="text-lg text-white font-semibold mb-4">{title}</h2>
|
|
<div className="flex justify-end">
|
|
<button
|
|
className="bg-primary px-3 py-2 rounded-sm text-white font-montserrat text-lg font-semibold cursor-pointer"
|
|
onClick={() => onConfirm()}
|
|
>
|
|
Confirmer
|
|
</button>
|
|
<button
|
|
className="bg-red-500 ml-4 px-3 py-2 rounded-sm text-white font-montserrat text-lg font-semibold cursor-pointer"
|
|
onClick={() => onCancel()}
|
|
>
|
|
Annuler
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|