{"size": 374, "ext": "js", "max_stars_repo_path": "studio/documentBadges/index.js", "max_stars_repo_name": "SparkPost/design.sparkpost.com", "max_stars_repo_stars_event_min_datetime": "2021-04-02T20:10:17.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-13T17:15:12.000Z", "max_issues_repo_path": "studio/documentBadges/index.js", "max_issues_repo_name": "SparkPost/design.sparkpost.com", "max_issues_repo_issues_event_min_datetime": "2021-08-20T19:21:40.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-28T03:26:58.000Z", "max_forks_repo_path": "studio/documentBadges/index.js", "max_forks_repo_name": "SparkPost/design.sparkpost.com", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 31.1666666667, "max_line_length": 63, "alphanum_fraction": 0.7727272727}
import defaultResolve from 'part:@sanity/base/document-badges';
import { types as workflowTypes } from '../config/workflow';
import { resolveWorkflowDocumentBadges } from './workflow';

export default function resolveDocumentBadges(docInfo) {
  if (workflowTypes.includes(docInfo.type)) {
    return resolveWorkflowDocumentBadges(docInfo);
  }

  defaultResolve(docInfo);
}
