+
Test APIs
+
+
+
+
+
+
+
+
+
+
+
+
+ {selectedPosterFile && (
+
+
Selected poster file: {selectedPosterFile.name}
+
+ )}
+ {selectedBlogFile && (
+
+
Selected blog file: {selectedBlogFile.name}
+
+ )}
+ {selectedImages.length > 0 && (
+
+
Selected images:
+
+ {selectedImages.map((image) => (
+ - {image.name}
+ ))}
+
+
+ )}
+ {events?.length > 0 && (
+
+
Events:
+
+ {events.map((event) => (
+ - {event.name}
+ ))}
+
+
+ )}
+ {blogs.length > 0 && (
+
+
Blogs:
+
+ {blogs.map((blog) => (
+ - {blog.title}
+ ))}
+
+
+ )}
+
+ );
+}
\ No newline at end of file
diff --git a/src/components/error_dialog.tsx b/src/components/error_dialog.tsx
new file mode 100644
index 0000000..caca38e
--- /dev/null
+++ b/src/components/error_dialog.tsx
@@ -0,0 +1,96 @@
+
+import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from "@/components/ui/dialog"
+import { useRouter } from "next/navigation"
+import { Button } from "@/components/ui/button"
+import { JSX, SVGProps } from "react"
+import PropsTypes from "prop-types"
+
+
+ErrorDialog.propTypes = {
+ status: PropsTypes.number,
+ error: PropsTypes.string
+}
+
+ErrorDialog.defaultProps = {
+ status: 500,
+ error: null,
+ error_message: "unknown"
+}
+
+export default function ErrorDialog({ status, error, error_message} : { status: number, error: string | null, error_message: string }) {
+ const router = useRouter()
+ const ReportError = () => {
+ if( !window.location.href.includes('report') ) {
+ router.push(`/report?status=${status}&error=${!error?error_message:error}&path=${window.location.href}`)
+ }
+ }
+ return (
+