import React from 'react'; import { reduxForm } from 'redux-form'; import { compose, graphql } from 'react-apollo'; import forceArray from 'force-array'; import find from 'lodash.find'; import get from 'lodash.get'; import { StatusLoader, Title, ViewContainer, Message, MessageTitle, MessageDescription } from 'joyent-ui-toolkit'; import { Resize as InstanceResize } from '@components/instances'; import ListPackages from '@graphql/list-packages.gql'; import GetInstance from '@graphql/get-instance.gql'; const Resize = ({ match, loading, error, instance, packages }) => { const ResizeForm = reduxForm({ form: `resize-instance-${match.params.instance}` })(InstanceResize); const _packages = forceArray(packages); const _title =