{"size": 398, "ext": "js", "max_stars_repo_path": "src/components/shortcodes.js", "max_stars_repo_name": "salmanazarr/website", "max_stars_repo_stars_event_min_datetime": "2020-11-08T17:42:54.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-29T16:43:47.000Z", "max_issues_repo_path": "src/components/shortcodes.js", "max_issues_repo_name": "salmanazarr/website", "max_issues_repo_issues_event_min_datetime": "2017-01-21T04:54:14.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-05T06:24:59.000Z", "max_forks_repo_path": "src/components/shortcodes.js", "max_forks_repo_name": "salmanazarr/website", "max_forks_repo_forks_event_min_datetime": "2018-12-05T00:31:58.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-03T16:11:50.000Z"}
{"max_stars_count": 2, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 26.5333333333, "max_line_length": 68, "alphanum_fraction": 0.6180904523}
import React from "react"

const asLazy = (ipath, defaultProps) => props => {
  const [Component, setComponent] = React.useState(() => () => null)
  React.useEffect(() => {
    ipath.then(Comp => setComponent(() => Comp.default))
  }, [])
  return <Component {...defaultProps} {...props} />
}

export default {
  LazyImage: asLazy(import("./image.js")),
  LazyVega: asLazy(import("./chart.js")),
}
