{"size": 252, "ext": "js", "max_stars_repo_path": "examples/simple-router/src/components/Topic.js", "max_stars_repo_name": "OldKinn/mirror", "max_stars_repo_stars_event_min_datetime": "2017-07-31T07:08:13.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-19T21:02:42.000Z", "max_issues_repo_path": "examples/simple-router/src/components/Topic.js", "max_issues_repo_name": "OldKinn/mirror", "max_issues_repo_issues_event_min_datetime": "2017-08-20T13:55:08.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-31T01:41:29.000Z", "max_forks_repo_path": "examples/simple-router/src/components/Topic.js", "max_forks_repo_name": "OldKinn/mirror", "max_forks_repo_forks_event_min_datetime": "2017-08-15T09:14:26.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-24T03:02:09.000Z"}
{"max_stars_count": 1604, "max_issues_count": 122, "max_forks_count": 156, "avg_line_length": 21.0, "max_line_length": 73, "alphanum_fraction": 0.623015873}
import React from 'react'
import {actions} from 'mirrorx'

const Topic = ({topic}) => (
  <div>
    <h3>{topic ? topic : 'Topic not found'}</h3>
    <button onClick={() => actions.routing.push('/topics')}>Back</button>
  </div>
)

export default Topic
