import React, { Fragment } from 'react'; import { Margin } from 'styled-components-spacing'; import Flex from 'styled-flex-component'; import { Field } from 'redux-form'; import titleCase from 'title-case'; import { H5, Select, Input, FormGroup } from 'joyent-ui-toolkit'; const Values = ( ); export const Rule = rule => (
The instance
be on
node as the instance(s) identified by the
{rule['rule-type'] === 'tag' ? ( {Values}
and value{' '}
{Values}
) : ( {Values} )}
); export const Header = rule => ( {titleCase(rule['rule-instance-conditional'])}: be on a{' '} {rule['rule-instance-placement']} node as the instance(s) identified by the instance {rule['rule-type']} {rule['rule-type'] === 'name' ? ( {' '} {rule['rule-instance-name-pattern']} “{rule['rule-instance-name']}” ) : ( {' '} key {rule['rule-instance-tag-key-pattern']} “{rule['rule-instance-tag-key']}" and the instance tag value {rule['rule-instance-tag-value-pattern']} {rule['rule-instance-tag-value']}” )} );