mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-09-22 12:20:10 +02:00
62da5c9933
* add useModal hook and ModalWrapper component that will be used to replace all <dialog> modals for better browser support * implement useModal hook and ModalWrapper component to replace all exisiting <dialog>
10 lines
275 B
JavaScript
10 lines
275 B
JavaScript
export default function ModalWrapper({ children, isOpen }) {
|
|
if (!isOpen) return null;
|
|
|
|
return (
|
|
<div className="bg-black/60 backdrop-blur-sm fixed top-0 left-0 outline-none w-screen h-screen flex items-center justify-center z-30">
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|