import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell, } from "@common/components/ui"; import React from "react"; interface InputSectionProps { title: string; data: { year: string; type: string; bizInfoNm: string; bizType: string }[]; sectionKey: string; onInputChange: ( section: string, index: number, field: string, value: string, ) => void; } const InputSection: React.FC = ({ title, data, sectionKey, onInputChange, }) => { return (
{/* 섹션 제목 */}

{title}

{/* 테이블 */}
구분 진단연도 사업명 유형 {data.map((row, index) => ( {row.type} onInputChange(sectionKey, index, "year", e.target.value) } className="border-radius-0 w-full px-3 py-2 text-center text-base text-xl leading-normal" /> {row.bizInfoNm} {row.bizType} ))}
); }; export default InputSection;