import { KubeObject } from "../../api/kube-object"; import { observer } from "mobx-react"; import React from "react"; import { Table, TableHead, TableCell, TableRow } from "../table"; import { prevDefault } from "../../utils"; import { showDetails } from "../../navigation"; import { Trans } from "@lingui/macro"; import { endpointStore } from "../+network-endpoints/endpoints.store"; import { Spinner } from "../spinner"; interface Props { endpoint: KubeObject; } @observer export class ServiceDetailsEndpoint extends React.Component { render() { const { endpoint } = this.props if (!endpoint && !endpointStore.isLoaded) return (
); if (!endpoint) { return null } return (
Name Endpoints showDetails(endpoint.selfLink, false))} > {endpoint.getName()} { endpoint.toString()}
) } }