import React from 'react'; interface IToggleResourceManagementProps { isPaused: boolean; isActuating?: boolean; regions: string[]; } export const ActuationWarning = () => (

Pausing management will not interrupt the action Spinnaker is currently performing to resolve the difference from desired state.

); export const ToggleResourceManagement = ({ isPaused, isActuating, regions }: IToggleResourceManagementProps) => { if (isPaused) { return ( <>

Spinnaker will resume taking action to correct differences from the desired state.

); } else { return ( <>

While a resource is paused, Spinnaker will not take action to correct differences from the desired state.

{isActuating && } ); } }; export const MultiRegionWarning = ({ isPaused, regions }: Omit) => { if (regions.length < 2) { return null; } return (
{isPaused ? 'Resuming' : 'Pausing'} management of this resource will affect the following regions:{' '} {regions.join(', ')}.
); };