import React from 'react' import { connect } from 'react-redux' import { t, c } from 'ttag' import ConstraintChooser from '../components/ConstraintChooser' import ConfigurationStep from './ConfigurationStep' import config from '../config' import { addConstraint } from '../actions/constraints' type ConstraintStepProps = { number: number constraints: any[] onChange: (selection: any) => any } const ConstraintStep = ({ number, constraints, onChange }: ConstraintStepProps) => { const { constraints: constraintsConfig } = config let table = null if (constraints.length) { table = (
| {t`Name`} | {t`Value`} | {c('i.e., Range of values (e.g., from 5 to 10)').t`Range (+/-)`} |
|---|