'use client' import { FileUpload, SelectBox } from "@common/business_components"; import { UiTable } from "@common/business_components/ui"; import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@common/business_components/ui/form"; import { Button, FileSearch, 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 "../store"; 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' } ] const [files, setFiles] = useState < File[] | null > (null); return ( <>
{/*
*/}
( 계통도 {/*

Click to upload   or drag and drop

SVG, PNG, JPG or GIF

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

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³/일) )} />
{/* 차수별 등록 현호아 폼 */}

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

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