{"size": 683, "ext": "js", "max_stars_repo_path": "packages/components/src/SampleConfigurator/PatternOptions/stories.js", "max_stars_repo_name": "Roopin619/freesewing", "max_stars_repo_stars_event_min_datetime": "2018-08-25T13:46:07.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-13T22:34:10.000Z", "max_issues_repo_path": "packages/components/src/SampleConfigurator/PatternOptions/stories.js", "max_issues_repo_name": "Roopin619/freesewing", "max_issues_repo_issues_event_min_datetime": "2018-08-13T08:44:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T20:35:42.000Z", "max_forks_repo_path": "packages/components/src/SampleConfigurator/PatternOptions/stories.js", "max_forks_repo_name": "Roopin619/freesewing", "max_forks_repo_forks_event_min_datetime": "2018-09-18T18:11:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T17:55:09.000Z"}
{"max_stars_count": 174, "max_issues_count": 1029, "max_forks_count": 100, "avg_line_length": 23.5517241379, "max_line_length": 77, "alphanum_fraction": 0.5929721816}
import React from "react";
import { storiesOf } from "@storybook/react";
import PatternOptions from ".";

const props = {
  raiseEvent: (type, data) =>
    console.log(`Action of type ${type} triggered, data passed is`, data),
  updateValue: (type, data) =>
    console.log(`Update ${type} with new value`, data),
  gist: {
    settings: {
      options: {}
    }
  }
};

storiesOf("Low level/PatternOptions", module)
  .add("Simon metric", () => (
    <PatternOptions pattern="simon" gist={false} units="metric" {...props} />
  ))
  .add("Trayvon imperial", () => (
    <PatternOptions
      pattern="trayvon"
      gist={false}
      units="imperial"
      {...props}
    />
  ));
