import React from 'react'; import { FirewallLabels, noop } from '@spinnaker/core'; import type { IAmazonServerGroupCommand } from '../../serverGroupConfiguration.service'; export interface IServerGroupSecurityGroupsRemovedProps { command?: IAmazonServerGroupCommand; removed?: string[]; onClear?: () => void; } export class ServerGroupSecurityGroupsRemoved extends React.Component { public static defaultProps: Partial = { onClear: noop, }; public render() { const { command, onClear, removed } = this.props; const dirtySecurityGroups = ((command && command.viewState.dirty.securityGroups) || []).concat(removed || []); if (dirtySecurityGroups.length === 0) { return null; } return (

The following {FirewallLabels.get('firewalls')} could not be found in the selected account/region/VPC and were removed:

    {dirtySecurityGroups.map((s) => (
  • {s}
  • ))}

Okay

); } }