{"size": 397, "ext": "js", "max_stars_repo_path": "packages/idyll-document/src/components/placeholder.js", "max_stars_repo_name": "domoritz/idyll", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/idyll-document/src/components/placeholder.js", "max_issues_repo_name": "domoritz/idyll", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/idyll-document/src/components/placeholder.js", "max_forks_repo_name": "domoritz/idyll", "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": 23.3529411765, "max_line_length": 94, "alphanum_fraction": 0.6171284635}


import React from 'react';

export const generatePlaceholder = (name) => {
  return class extends React.PureComponent {
    constructor(props) {
      super(props);
      console.warn(`Warning: attempting to use component named ${name}, but it wasn't found`);
    }

    render() {
      const { idyll, updateProps, hasError, ...props } = this.props;
      return <div {...props} />;
    }
  }
}