diff options
Diffstat (limited to 'packages/aml-backoffice-ui/src/handlers/Dialog.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/handlers/Dialog.tsx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/aml-backoffice-ui/src/handlers/Dialog.tsx b/packages/aml-backoffice-ui/src/handlers/Dialog.tsx deleted file mode 100644 index 7b41fe487..000000000 --- a/packages/aml-backoffice-ui/src/handlers/Dialog.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { ComponentChildren, VNode, h } from "preact"; - -export function Dialog({ children, onClose }: { onClose?: () => void; children: ComponentChildren }): VNode { - return <div class="relative z-10" aria-labelledby="modal-title" role="dialog" aria-modal="true" onClick={onClose}> - <div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> - - <div class="fixed inset-0 z-10 w-screen overflow-y-auto"> - <div class="flex min-h-full items-center justify-center p-4 text-center "> - <div class="relative transform overflow-hidden rounded-lg bg-white p-1 text-left shadow-xl transition-all" onClick={(e) => e.stopPropagation()}> - {children} - </div> - </div> - </div> - </div> -} |