import { CellProps, Column } from 'react-table'; import { Authorized } from '@/react/hooks/useUser'; import KubernetesNamespaceHelper from '@/kubernetes/helpers/namespaceHelper'; import { Service } from '../../types'; export const name: Column = { Header: 'Name', id: 'Name', accessor: (row) => row.Name, Cell: ({ row }: CellProps) => { const isSystem = KubernetesNamespaceHelper.isSystemNamespace( row.original.Namespace ); const isExternal = !row.original.Labels || !row.original.Labels['io.portainer.kubernetes.application.owner']; return ( {row.original.Name} {isSystem && ( system )} {isExternal && !isSystem && ( external )} ); }, disableFilters: true, canHide: true, };