import React, { useState } from "react"; import { FormattedMessage } from "react-intl"; import PatternOptions from "./PatternOptions"; import { withoutBreasts } from "@freesewing/models"; const SampleConfigurator = props => { const [expanded, setExpanded] = useState([]); const sampleOption = option => { props.updateGist( { type: "option", option }, "settings", "sample" ); }; const sampleMeasurement = measurement => { props.updateGist( { type: "measurement", measurement }, "settings", "sample" ); }; const sampleModels = models => { props.updateGist( { type: "models", models }, "settings", "sample" ); }; let antMan = { ant: {}, man: withoutBreasts.manSize42 }; for (let m in withoutBreasts.manSize42) antMan.ant[m] = antMan.man[m] / 10; return (