diff --git a/app/@modal/default.tsx b/app/@modal/default.tsx new file mode 100644 index 00000000..abd073ec --- /dev/null +++ b/app/@modal/default.tsx @@ -0,0 +1,5 @@ +const Default = () => { + return null +} + +export default Default diff --git a/app/default.tsx b/app/default.tsx new file mode 100644 index 00000000..abd073ec --- /dev/null +++ b/app/default.tsx @@ -0,0 +1,5 @@ +const Default = () => { + return null +} + +export default Default diff --git a/app/layout.tsx b/app/layout.tsx index dd668950..75bd67cc 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -36,6 +36,7 @@ const RootLayout = ({
+ {modal} {children}
diff --git a/components/Modal.tsx b/components/Modal.tsx new file mode 100644 index 00000000..4e3d17ea --- /dev/null +++ b/components/Modal.tsx @@ -0,0 +1,36 @@ +// "use client" +import React from 'react' + +// import { useRouter } from 'next/navigation' +import { XCircleIcon } from '@heroicons/react/24/outline' + +const Modal = ({ + children, + title +}: { + children: React.ReactNode + title: string +}) => { + // const router = useRouter() + + return ( +
+
+
+
+

+ {title} +

+ {/* */} +
+
{children}
+
+
+
+ ) +} + +export default Modal