import { CellContext } from '@tanstack/react-table'; import { Authorized } from '@/react/hooks/useUser'; import { isSystemNamespace } from '@/react/kubernetes/namespaces/utils'; import { Link } from '@@/Link'; import { Badge } from '@@/Badge'; import { Ingress } from '../../types'; import { columnHelper } from './helper'; export const name = columnHelper.accessor('Name', { header: 'Name', cell: Cell, id: 'name', }); function Cell({ row, getValue }: CellContext) { const name = getValue(); const namespace = row.original.Namespace; const isSystemIngress = isSystemNamespace(namespace); return (
{name} {isSystemIngress && ( system )}
); }