import { CellProps, Column } from 'react-table'; import { Badge } from '@@/Badge'; import type { IngressControllerClassMap } from '../../types'; export const name: Column = { Header: 'Ingress class', accessor: 'ClassName', Cell: NameCell, id: 'name', disableFilters: true, canHide: true, Filter: () => null, sortType: 'string', }; function NameCell({ row }: CellProps) { return ( {row.original.ClassName} {row.original.New && Newly detected} ); }