"use client"; import { SelectBox } from "@common/business_components"; import { DatePicker, FileUpload, FormUi, UiTable } from "@common/business_components/ui"; import { Form, FormField } from "@common/business_components/ui/form"; import { Button, Input } from "@common/components"; import { zodResolver } from "@hookform/resolvers/zod"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { useWrStore } from "../../app/store/index"; const formSchema = z.object({ username: z.string().min(2).max(50), facilityName: z.string().min(2).max(50), }); // type typeOfForm = { // labelName: string; // type: string; // selectvlaue?: { text: string; val: string }[]; // } export function PublicReuseFaciltyFormInsert() { const { pubFac } = useWrStore((state) => state); const { pubFacHeadList, publicReuseFacilityData} = pubFac; const total = 100; const form = useForm>({ resolver: zodResolver(formSchema), defaultValues: { username: "", }, }); // 2. Define a submit handler. function onSubmit(values: z.infer) { // Do something with the form values. // ✅ This will be type-safe and validated. console.log(values); } const selectboxValue = [ { text: "1치", val: "1" }, { text: "2차", val: "2" }, ]; const selectboxDivValue = [ { text: "신규", val: "1" }, { text: "진행", val: "2" }, ]; const selectboxBuisValue = [ { text: "재정", val: "1" }, { text: "만루", val: "2" }, ]; const selectboxReuseMethodValue = [ { text: "물리적처리", val: "1" }, { text: "생물학적처리", val: "2" }, ]; const selectboxMethodValue = [ { text: "처리장연계", val: "1" }, { text: "자쳬처리", val: "2" }, { text: "자쳬+연계", val: "3" }, ]; const [datePick, setDatePick] = useState(new Date()) const [files, setFiles] = useState(null); return (
{/*
*/}

○ 재이용시설 운영정보

( )} />
( )} />
( )} />

○ 재이용시설 운영정보

○ 재이용수 공급 가능량

( )} />
( )} />
( )} />
( )} />
{/* 차수별 등록 현황 폼 */}

○ 차수별 하수처리수 재이용 시설 현황

( )} />

♦︎하수처리수 재이용 시설 현황

사업개요{" "}

1. 현황

( )} />
( )} />
( { if (date) setDatePick(date) } }} mode="single" {...field}/> )} />
( )} />

2. 사업비

( )} />
( )} />
( )} />
( )} />
( )} />
( )} />

재처리시설{" "}

( )} />
( )} />
( )} />
( )} />
( )} />
( )} />

농축수관리{" "}

); }