import React from 'react'; import type { ICapacity } from '../../serverGroupWriter.service'; export function DesiredCapacity(props: { capacity: ICapacity; simpleMode: boolean }) { const SimpleCapacity = () => ( <>
Min/Max
{props.capacity.desired}
); const AdvancedCapacity = () => ( <>
Min
{props.capacity.min}
Desired
{props.capacity.desired}
Max
{props.capacity.max}
); return props.simpleMode ? : ; }