import React, { PureComponent } from 'react';
import { Margin } from 'styled-components-spacing';
import Flex, { FlexItem } from 'styled-flex-component';
import { compose } from 'react-apollo';
import { Link } from 'react-router-dom';
import ReduxForm from 'declarative-redux-form';
import { connect } from 'react-redux';
import { Field, change } from 'redux-form';
import { withRouter } from 'react-router';
import get from 'lodash.get';
import plur from 'plur';
import Step, {
Header as StepHeader,
Description as StepDescription,
Preview as StepPreview,
Outlet as StepOutlet
} from 'joyent-ui-resource-step';
import {
H2,
P,
FormGroup,
FormLabel,
Input,
FormMeta,
Button,
InstanceCountIcon
} from 'joyent-ui-toolkit';
import { Forms } from '@root/constants';
import { name as validateName } from '@state/validators';
const { SGC_N_F } = Forms;
const Name = ({
history,
handleGetValue,
preview = {},
readOnlyName,
initialValues,
handleValidate,
handlePlusClick,
handleMinusClick,
...props
}) => (
}>
Name and instance count
Input the name of your Service Group and the desired number of instances
this group will aim to maintain. You can scale up or down your Service
Group anytime after commisioning.