{"size": 632, "ext": "js", "max_stars_repo_path": "src/containers/BaseComponents/MiShopFlow/index.js", "max_stars_repo_name": "ngulee/react-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/containers/BaseComponents/MiShopFlow/index.js", "max_issues_repo_name": "ngulee/react-app", "max_issues_repo_issues_event_min_datetime": "2020-09-06T16:58:55.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T06:40:58.000Z", "max_forks_repo_path": "src/containers/BaseComponents/MiShopFlow/index.js", "max_forks_repo_name": "ngulee/react-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 19.1515151515, "max_line_length": 69, "alphanum_fraction": 0.5332278481}
import React, { memo, useState, useEffect } from 'react';
import axios from 'axios';
import Card from '../Card';

const prefixCls = 'shop-flow';

const requestMiShopFlow = () => {
  return axios.get('http://mock.be.mi.com/mock/418/statFlow/widget');
}

export default memo((props = {}) => {
  const [state, setState] = useState({});
  
  useEffect(() => {
    requestMiShopFlow().then(({ data: { data = {} } }) => {
      console.log('data:', data);
      const {
        title,
        sub_title,
        chart = {}
      } = data;
    })
  }, []);
  return (
    <Card
      className={prefixCls}
      
    >

    </Card>
  )
})
