({ match: { location }, view }: TopicPageProps)
| 44 | } |
| 45 | |
| 46 | export function TopicPage({ match: { location }, view }: TopicPageProps) { |
| 47 | if (!view || !view.topic || !view.viewer) return <div>Loading ...</div> |
| 48 | |
| 49 | if (location.query.q) { |
| 50 | return ( |
| 51 | <TopicSearchPage |
| 52 | topic={view.topic} |
| 53 | viewer={view.viewer} |
| 54 | /> |
| 55 | ) |
| 56 | } |
| 57 | |
| 58 | return ( |
| 59 | <ViewTopicPage |
| 60 | location={location} |
| 61 | topic={view.topic} |
| 62 | viewer={view.viewer} |
| 63 | /> |
| 64 | ) |
| 65 | } |
nothing calls this directly
no outgoing calls
no test coverage detected