"use client"; import type { UseFormReturn } from "react-hook-form"; import { Input, Label, RadioGroup, RadioGroupItem, Table, TableBody, TableCell, TableHead, TableRow, } from "@common/components"; import { FormWrapper } from "@/widgets/form-wrapper"; import { CodeSelect } from "@/entities/code"; import { FormControl, FormField, FormItem } from "@/shared/ui/form"; import type { AuthorizationFormData, WithRoleAuthorizations, } from "../model/authorizations-interface"; type BannerFormProps = { form: UseFormReturn; authorizationNo?: number; handleSave: (data: AuthorizationFormData) => Promise; handleDelete?: () => Promise; }; function ModuleForm({ form, authorizationNo, ...props }: BannerFormProps) { return (
API명 ( )} /> API URL ( )} /> 요청 메소드 ( )} /> 정렬순서 ( { const value = e.target.value; if (isNaN(parseInt(value))) return; field.onChange(parseInt(value)); }} className="w-[12rem] !text-[1.3rem]" placeholder="정렬순서 입력" /> )} /> 사용여부 (
)} />
); } export { ModuleForm };