'use client' import ContentLayout from '@/components/ui/contentLayout' import { SearchDiv, SearchFormLeft, SelectBox, SearchFormRight, Form, UiTable } from '@common/business_components/ui' import ListDiv from '@common/business_components/ui/list_div' import { Button } from '@common/components/ui' import React, { type ReactNode } from 'react' type TitleName = { mainTitle: string firstCardTitle: string secondCardTitle?: string } type SelectBox = { labelNm?: Label searchChk?: boolean } type Label = { first: string second: string third: string fourth: string } type BaseLayout = { children?: ReactNode[] titleName: TitleName form: any onSubmitEvent: Function graphBtn?: boolean firstDivBtn?: boolean searchBox?: SelectBox } // TODO: 나중에 이벤트 추가되면 파라미터 추가 필요 ? /** * * @param children * @param titleName : 메인 타이틀, 첫번째 요소 타이틀, 두번째 요소 타이틀 * @param form : zod 스키마 * @param onSubmitEvent : 폼 이벤트 처리 * @param graphBtn : 하단에 그래프 버튼 유무 처리 * @returns */ const BaseLayout = ({ children, titleName, form, onSubmitEvent, graphBtn = false, searchBox }: BaseLayout) => { return ( { }} selectClass={undefined} /> { }} selectClass='' /> { }} selectClass='' /> { }} selectClass='' /> {searchBox?.searchChk ? : null}

{titleName.firstCardTitle}

{graphBtn ? : null} {/* 그래프 있을 시 */} {graphBtn ? : null}
{/* 폼 정보 입력 칸 */} {children?.[0]}
{children?.[1] != null ?

{titleName?.secondCardTitle}

{graphBtn ? : null} {/* 그래프 있을 시 */} {graphBtn ? : null}
{children?.[1]}
: null}
) } export default BaseLayout