This commit is contained in:
2025-05-22 11:05:21 +02:00
parent 3012707ba8
commit 370dc9934b
2 changed files with 55 additions and 9 deletions
@@ -0,0 +1,18 @@
import React from "react";
export default function PopUp({ children, onClose }) {
return (
<div className="fixed inset-0 bg-black/60 flex items-center justify-center z-50">
<div className="bg-white rounded-xl shadow-lg p-8 min-w-[300px] relative">
<button
onClick={onClose}
className="absolute top-2 right-2 text-gray-500 hover:text-black text-xl font-bold leading-none"
aria-label="Close"
>
×
</button>
{children}
</div>
</div>
);
}