{"size": 386, "ext": "js", "max_stars_repo_path": "src/components/Icon/Component.js", "max_stars_repo_name": "bryanmartin82/react-starter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Icon/Component.js", "max_issues_repo_name": "bryanmartin82/react-starter", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Icon/Component.js", "max_forks_repo_name": "bryanmartin82/react-starter", "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": 35.0909090909, "max_line_length": 105, "alphanum_fraction": 0.6839378238}
import React from 'react';
import styles from './styles.css';
import classnames from 'classnames';

export default function(props) {
  const {svg, className, size, ...rest} = props;
  const sizeCls = styles[`size${size}`] ? styles[`size${size}`] : styles.size16;
  return (
    <span {...rest} className={classnames(sizeCls, className)} dangerouslySetInnerHTML={{__html: svg}} />
  );
}