{"size": 269, "ext": "js", "max_stars_repo_path": "src/components/Icon/utils/getIconPadding.js", "max_stars_repo_name": "Daarien/react-astro-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Icon/utils/getIconPadding.js", "max_issues_repo_name": "Daarien/react-astro-ui", "max_issues_repo_issues_event_min_datetime": "2021-08-31T20:03:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T07:05:11.000Z", "max_forks_repo_path": "src/components/Icon/utils/getIconPadding.js", "max_forks_repo_name": "Daarien/react-astro-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 14.9444444444, "max_line_length": 48, "alphanum_fraction": 0.6059479554}
export const BASIC_PADDING = 2;

export function getIconPadding(size, inverted) {
  if (!inverted) {
    return 0;
  }

  if (size < 20) {
    return BASIC_PADDING;
  }

  if (size >= 20 && size <= 40) {
    return BASIC_PADDING * 2;
  }

  return BASIC_PADDING * 3;
}
