import { CellProps, Column } from 'react-table'; import clsx from 'clsx'; import { Device } from '@/portainer/hostmanagement/open-amt/model'; export const status: Column = { Header: 'MPS Status', id: 'status', disableFilters: true, canHide: true, sortType: 'string', Cell: StatusCell, Filter: () => null, }; export function StatusCell({ row: { original: device } }: CellProps) { return ( {device.connectionStatus ? 'Connected' : 'Disconnected'} ); }