19 lines
966 B
TypeScript
19 lines
966 B
TypeScript
import { VerticalTable } from '@/components/ui/verticalTable';
|
|
import React from 'react'
|
|
const inputColumn = [
|
|
{ id: "swtrmt_zone_cd", title: "처리구역", type: "input" },
|
|
{ id: "mltv_dtdv_nm", title: "배수분구", type: "input" },
|
|
]
|
|
// 빗물펌프
|
|
const StormWaterPump = ({ featureData }: { featureData: Record<string, any> }) => {
|
|
const validKey = inputColumn.map((item) => item.id);
|
|
const filteredData = featureData && Object.entries(featureData).filter(([key]) => validKey.includes(key)).reduce((obj: Record<string, any>, [key, value]) => {obj[key] = value; return obj;}, {});
|
|
return (
|
|
<div><VerticalTable headName='자체 입력정보' tableData={[filteredData]} headlist={inputColumn} pageSize={0} total={0} children={undefined} cellClick={undefined} isEditable={true} onPageChange={function (page: number): void {
|
|
throw new Error('Function not implemented.');
|
|
}} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default StormWaterPump |