import React from 'react'; import type { IScheduledAction } from '../../../domain'; export interface IScheduledActionProps { action: IScheduledAction; } export class ScheduledAction extends React.Component { public render() { const { action } = this.props; return (
Schedule
{action.recurrence}
{action.minSize !== undefined &&
Min Size
} {action.minSize !== undefined &&
{action.minSize}
} {action.maxSize !== undefined &&
Max Size
} {action.maxSize !== undefined &&
{action.maxSize}
} {action.desiredCapacity !== undefined &&
Desired Size
} {action.desiredCapacity !== undefined &&
{action.desiredCapacity}
}
); } }