import { Empty } from 'antd'; import {Grid, GridItem} from '../../components/Grid' export const View = ({columns, item}) => { if (!item || !columns?.length) return const colsCount = 3 const viewItems = columns.map( (column, i) => { const row = Math.floor(i / colsCount) + 1 const colb = i % colsCount return <> {column.title} {column.render ? column.render(item[column.dataIndex]) : item[column.dataIndex]} }) return {viewItems} }