From 28bbf36e1508c0e641c9f66393bf86d86f6e9b16 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Fri, 16 Jan 2026 17:00:58 +0000 Subject: [PATCH] Update components/report-form.tsx --- components/report-form.tsx | 100 +++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 components/report-form.tsx diff --git a/components/report-form.tsx b/components/report-form.tsx new file mode 100644 index 0000000..78ccaa3 --- /dev/null +++ b/components/report-form.tsx @@ -0,0 +1,100 @@ +"use client"; +import { Container } from "@/components/container"; +import { Heading } from "@/components/heading"; +import { Subheading } from "@/components/subheading"; +import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/card"; +import { KleapForm, KleapFormField } from "@/components/kleap-form"; +import { useLanguage } from "@/context/language-provider"; +import Image from "next/image"; + +export function ReportForm() { + const { t } = useLanguage(); + + const fields: KleapFormField[] = [ + { + name: "incident_type", + label: t("incident_type"), + type: "select", + required: true, + options: [ + t("car_accident"), + t("train_accident"), + t("crime"), + t("violent_crime"), + t("emergency"), + t("other"), + ], + }, + { + name: "location", + label: t("location"), + type: "text", + placeholder: t("placeholder_location"), + required: true, + }, + { + name: "description", + label: t("description"), + type: "textarea", + placeholder: t("placeholder_description"), + required: true, + }, + { + name: "contact_info", + label: t("contact_info"), + type: "text", + placeholder: t("placeholder_contact"), + }, + ]; + + return ( +
+ +
+
+
+ {t("submit_report")} + + {t("hero_title_1")} {t("hero_title_2")} + + {t("anonymous_note")} +
+ + + {t("incident_details")} + + {t("accuracy_note")} + + + + + + +
+
+
+ Ambulance Emergency +
+
+ Fire Truck Response +
+
+
+
+
+ ); +}