import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from "@common/components/ui"; import React from "react"; interface InputSectionProps { title: string; data: { year: string; type: 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) => ( 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.type} ))}
); }; export default InputSection;