"use client"; import { zodResolver } from "@hookform/resolvers/zod"; import { Button } from "@heroui/button"; import { Input, Textarea } from "@heroui/input"; import { Select, SelectItem, SelectSection } from "@heroui/react"; import React, { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { Calender, CustomerService, EyeFilledIcon, EyeSlashFilledIcon, Hotline, Location, Mail, } from "../../icons"; import Datepicker from "react-tailwindcss-datepicker"; import Image from "next/image"; const schema = z.object({ name: z.string().min(3).max(50), email: z.string().email(), }); interface FormData { name: string; email: string; } const Contact: React.FC = () => { const [isVisible, setIsVisible] = React.useState(false); const [selectedGender, setSelectedGender] = React.useState(""); const [startDateValue, setStartDateValue] = useState({ startDate: null, endDate: null, }); const toggleVisibility = () => setIsVisible(!isVisible); const { register, handleSubmit, formState: { errors }, } = useForm({ resolver: zodResolver(schema), }); const onChangeGender = (selectedItem: any) => { setSelectedGender(selectedItem); // Lakukan apa pun yang perlu dilakukan saat pilihan jenis kelamin berubah di sini console.log("Selected Gender:", selectedItem); }; const handleValueChange = (newValue: any, num: any) => { console.log("start:", newValue); setStartDateValue(newValue); }; const onSubmit = (data: FormData) => { console.log(data); }; return ( //
//
// // // {errors.name &&

{errors.name.message}

} //
//
// // // {errors.email &&

{errors.email.message}

} //
// //
(

Kontak Kami

Informasi Kontak
Berikut informasi lengkap terkait Divisi Humas Polri
Hotline Divisi HumasPolri (021) 72120599
Hotline Divisi HumasPolri (021) 72120599
Call Center 110
ppid@polri.go.id
Jl Trunojoyo No.3, RT.2/RW.1, Selong, Kec. Kebayoran Baru, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12110, Indonesia
Hari Senin - Jumat | 08:00 - 15:00 WIB
{/* */} {" "}
Silahkan tuliskan pertanyaan anda kepada kami
ar
) ); }; export default Contact;