'use client' import { zodResolver } from "@hookform/resolvers/zod" import { useForm } from "react-hook-form" import { z } from "zod" import { Button, FileSearch, Input } from "@common/components"; import {Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage } from "@common/business_components/ui/form"; import { UiTable } from "@common/business_components/ui"; import { useWrStore } from "../store"; import Style from "../style/PublicReuseFaciltyInsert.module.css"; import { SelectBox } from "@common/business_components"; const formSchema= z.object({ username: z.string().min(2).max(50), facilityName:z.string().min(2).max(50) }) export function PublicReuseFaciltyFormInsert(){ const { upHeadList, publicReuseFacilityUper} = useWrStore((state) => state); 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' } ] return ( <>
{/*
*/}
( 재이용시설 명 )} />
( 계통도 {/*

Click to upload   or drag and drop

SVG, PNG, JPG or GIF

{files && files.length > 0 && files.map((file, i) => ( {file.name} ))}
*/}
)} />
( 평면도 {/*

Click to upload   or drag and drop

SVG, PNG, JPG or GIF

{files && files.length > 0 && files.map((file, i) => ( {file.name} ))}
*/}
)} />

○ 재이용시설 운영정보

○ 재이용수 공급 가능량

( 시설용량(m³/일) )} />
( 하수처리량(m³/일) )} />
( 재이용량(m³/일) )} />
( 공급여유량(m³/일) )} />
{/* 차수별 등록 현호아 폼 */}

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

( 등록 차수 )} />
); }