import { CellContext } from '@tanstack/react-table'; import { Check, X } from 'lucide-react'; import { Badge } from '@@/Badge'; import { Icon } from '@@/Icon'; import type { IngressControllerClassMap } from '../../types'; import { columnHelper } from './helper'; export const availability = columnHelper.accessor('Availability', { header: 'Availability', cell: Cell, id: 'availability', invertSorting: true, sortingFn: 'basic', }); function Cell({ getValue }: CellContext) { const availability = getValue(); return ( {availability ? 'Allowed' : 'Disallowed'} ); }