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="w-full text-xl border-radius-0 px-3 py-2 text-base text-center leading-normal" /> {row.bizInfoNm} {row.bizType} ))}
); }; export default InputSection;