"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
); }