import React, { useMemo } from 'react' import { Table, Tooltip } from 'antd' import FileView from './components/FileView' import CoordView from './components/CoordView' const TablePack = (props) => { const { value, widget } = props if (widget === 'FileUpload') { return <FileView {...props} /> } if (['Coordinate', 'Device', 'SearchLocation'].includes(widget)) { return <CoordView {...props} /> } return ( <div>{value}</div> ) } export default TablePack