/** * ๐Ÿ“„ Form Section Component * ํผ ์„น์…˜ ์ปดํฌ๋„ŒํŠธ * * - ํผ ํ•„๋“œ ๋ Œ๋”๋ง ๋ฐ ์ œ๋ชฉ ํ‘œ์‹œ * - ํ•„์ˆ˜ ์ž…๋ ฅ ํ•„๋“œ ํ‘œ์‹œ (๋ณ„ํ‘œ ํ‘œ์‹œ) * - FormField๋ฅผ ํ†ตํ•œ ํผ ์ƒํƒœ ๊ด€๋ฆฌ * - ๊ทธ๋ฆฌ๋“œ ๋ ˆ์ด์•„์›ƒ์„ ํ†ตํ•œ ์ •๋ ฌ ๋ฐ ๋ฐฐ์น˜ * - ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํผ ์„น์…˜ ๊ตฌ์กฐ ์ œ๊ณต * - react-hook-form ํ†ตํ•ฉ ์ง€์› */ import { FormField } from '@common/business_components/ui' import React, { type ReactElement } from 'react' interface FormSectionProps { children: ReactElement titleNm: string form: any name: string required?: boolean } const FormSection = ({ children, titleNm, form, name, required }: FormSectionProps) => { return (
{titleNm}{required && *}
children} />
) } export default FormSection