{"size": 996, "ext": "js", "max_stars_repo_path": "pages/index.js", "max_stars_repo_name": "storm00530/skullsplitter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "pages/index.js", "max_issues_repo_name": "storm00530/skullsplitter", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "pages/index.js", "max_forks_repo_name": "storm00530/skullsplitter", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.2941176471, "max_line_length": 72, "alphanum_fraction": 0.6847389558}
import { Page } from "@shopify/polaris";
import TopBarComponent from "./settings/Topbar";
import CollectionTable from "./settings/CollectionTable";
import NumberOfRollsPerDay from "./settings/NumberOfRollsPerDay";
import "./Global.css";

const Index = () => {
  const [passData, setPassData] = React.useState({});
  const [stateData, setStateData] = React.useState([]);
  const [numer_of_rolls, setNumer_of_rolls] = React.useState(0);
  const setPassDataFromTopBar = (value) => {
    setPassData(value);
  };
  const setSavedata = (value) => {
    setStateData(value);
  };
  const setNumerofRolls = (value) => {
    setNumer_of_rolls(value);
  };
  return (
    <Page>
      <TopBarComponent
        getPassData={setPassDataFromTopBar}
        passStateData={stateData}
        setNumber={numer_of_rolls}
      />
      <NumberOfRollsPerDay getNumberOfRolls={setNumerofRolls} />
      <CollectionTable passData={passData} getStateData={setSavedata} />
    </Page>
  );
};

export default Index;
