import { Fragment } from 'react'; import DockerNetworkHelper from '@/docker/helpers/networkHelper'; import { Authorized } from '@/portainer/hooks/useUser'; import { Table, TableContainer, TableTitle } from '@@/datatables'; import { DetailsTable } from '@@/DetailsTable'; import { Button } from '@@/buttons'; import { Icon } from '@@/Icon'; import { isSystemNetwork } from '../network.helper'; import { DockerNetwork, IPConfig } from '../types'; interface Props { network: DockerNetwork; onRemoveNetworkClicked: () => void; } export function NetworkDetailsTable({ network, onRemoveNetworkClicked, }: Props) { const allowRemoveNetwork = !isSystemNetwork(network.Name); const ipv4Configs: IPConfig[] = DockerNetworkHelper.getIPV4Configs( network.IPAM?.Config ); const ipv6Configs: IPConfig[] = DockerNetworkHelper.getIPV6Configs( network.IPAM?.Config ); return (