import React, { useState } from "react"; import { FormattedMessage } from "react-intl"; import PatternOptions from "./PatternOptions"; import models 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: models.manSize42 }; for (let m in models.manSize42) antMan.ant[m] = antMan.man[m] / 10; return ( ); }; export default SampleConfigurator;