code base

This commit is contained in:
ANUJ7MADKE
2025-07-13 22:49:55 +05:30
parent d4f21c9a99
commit cd43f0e98e
96 changed files with 17779 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import React from 'react';
const Modal = ({ onClose, children }) => {
return (
<div
className="fixed top-0 inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"
onClick={onClose}
>
<div
className="bg-white p-6 rounded-lg relative w-11/12 md:w-3/5 lg:w-2/5 max-h-[85%] h-min overflow-auto"
onClick={(e) => e.stopPropagation()}
>
<div className="flex justify-start p-2">
<button
type='button'
className="absolute top-3 right-3 text-xl font-bold text-gray-700 hover:text-gray-900"
onClick={onClose}
>
X
</button>
</div>
<div className="h-full overflow-y-auto">
{children}
</div>
</div>
</div>
);
};
export default Modal;