import React from 'react' import Button from '@material-ui/core/Button' import { FormattedMessage, FormattedHTMLMessage } from 'react-intl' import FormFieldMeasurement from '../../.form/FormFieldMeasurement' import { withBreasts, withoutBreasts } from '@freesewing/models' import Icon from '../../Icon' const Measurements = (props) => { const styles = { container: { display: 'flex', flexDirection: 'row', width: '100%', minHeight: '70vh' }, chooser: { width: '100%', maxWidth: '500px', alignSelf: 'top' }, ul: { listStyleType: 'none', margin: '0', padding: '0' }, li: { display: 'inline', padding: '0 5px 5px 0' } } const getValue = (m) => { if (props.measurements === null) return '' if (typeof props.measurements[m] === 'undefined') return '' return props.measurements[m] } if (props.required.length < 1) return (
) return (