import { UISref } from '@uirouter/react'; import { orderBy } from 'lodash'; import React from 'react'; import type { IServerGroupSummary } from '@spinnaker/core'; import { AccountTag, CollapsibleSection, robotToHuman, timestamp } from '@spinnaker/core'; import type { IKubernetesServerGroupManagerDetailsSectionProps } from './IKubernetesServerGroupManagerDetailsSectionProps'; export function ServerGroupManagerInformationSection({ serverGroupManager, }: IKubernetesServerGroupManagerDetailsSectionProps) { return (
Created
{timestamp(serverGroupManager.createdTime)}
Account
Namespace
{serverGroupManager.namespace}
Kind
{serverGroupManager.kind}
{serverGroupManager.serverGroups.length > 0 && ( <>
Managing
{orderBy(serverGroupManager.serverGroups, ['name'], ['asc']).map((serverGroup: IServerGroupSummary) => ( ))}
)}
); }