import { CellProps, Column } from 'react-table'; import { Badge } from '@@/Badge'; import { Icon } from '@@/Icon'; import type { IngressControllerClassMap } from '../../types'; export const availability: Column = { Header: 'Availability', accessor: 'Availability', Cell: AvailailityCell, id: 'availability', disableFilters: true, canHide: true, sortInverted: true, sortType: 'basic', Filter: () => null, }; function AvailailityCell({ value }: CellProps) { return ( {value ? 'Allowed' : 'Disallowed'} ); }