{"size": 209, "ext": "js", "max_stars_repo_path": "myTube-backend/functions/src/services/topicService.js", "max_stars_repo_name": "fchiapini/myTube", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "myTube-backend/functions/src/services/topicService.js", "max_issues_repo_name": "fchiapini/myTube", "max_issues_repo_issues_event_min_datetime": "2021-05-11T13:05:12.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T11:58:13.000Z", "max_forks_repo_path": "myTube-backend/functions/src/services/topicService.js", "max_forks_repo_name": "fchiapini/myTube", "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": 20.9, "max_line_length": 51, "alphanum_fraction": 0.6220095694}
import * as data from '../../topics.json'

const getTopics = () => {
  return data.topics.map((topic) => {
    return { name: topic.name, image: topic.image }
  })
}

export const topicService = { getTopics }
