import React from 'react' import { Empty, Form } from 'antd' import { Grid, GridItem } from '../../components/Grid' import '../../styles/index.css' const colsCount = 3 const headerCellStyle = { border:'1px solid lightgrey' } const valueCellStyle = { border:'1px solid lightgrey', justifyContent:'right', marginRight:'16px', fontWeight:'bold', textAlign:'right', padding: 0 } export const View = React.memo(({columns, item}) => { if (!item || !columns?.length) return return ( {columns.map((column, i) => ( <> {column.title} {column.render ? ( {column.render(item[column.dataIndex])} ) : (

{item[column.dataIndex]}

)}
))}
) })