import { CellContext } from '@tanstack/react-table'; import { Badge } from '@@/Badge'; import type { IngressControllerClassMap } from '../../types'; import { columnHelper } from './helper'; export const name = columnHelper.accessor('ClassName', { header: 'Ingress class', cell: NameCell, id: 'name', }); function NameCell({ row, getValue, }: CellContext) { const className = getValue(); return ( {className} {row.original.New && Newly detected} ); }