<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: Igor Ilic <igorilic03@gmail.com>
12 lines
308 B
TypeScript
12 lines
308 B
TypeScript
interface ModalProps {
|
|
isOpen: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function Modal({ isOpen, children }: ModalProps) {
|
|
return isOpen && (
|
|
<div className="fixed top-0 left-0 right-0 bottom-0 backdrop-blur-lg z-1 flex items-center justify-center">
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|