Files
frontend/apps/sn/app/components/ui/formSection.tsx
T
swcho f446dde591 feat:
- SelectBox Width 고정
- I/I분석 JSON 데이터에 파일명 추가
- 시도시군구 매핑 오류 수정
2025-05-28 17:10:56 +09:00

24 lines
647 B
TypeScript

import { FormField } from '@common/business_components/ui'
import React, { type ReactElement } from 'react'
interface FormSectionProps {
children: ReactElement
titleNm: string
form: any
name: string
}
const FormSection = ({ children, titleNm, form, name }: FormSectionProps) => {
return (
<div className="grid grid-cols-[200px_1fr] items-center">
<div className="text-xl font-medium">{titleNm}</div>
<FormField
control={form.control}
name={name}
render={({ field }) => children}
/>
</div>
)
}
export default FormSection