({ url, title }: { url: string | null, title: string })
| 46 | } |
| 47 | |
| 48 | function TitleLink({ url, title }: { url: string | null, title: string }) { |
| 49 | if (!url) { |
| 50 | return ( |
| 51 | <a |
| 52 | className="Box-row-link" |
| 53 | href="#" |
| 54 | > |
| 55 | {title} |
| 56 | </a> |
| 57 | ) |
| 58 | } |
| 59 | |
| 60 | const to = locationDescriptor(url, title) |
| 61 | |
| 62 | return ( |
| 63 | <div className="item-title"> |
| 64 | <LinkOrA to={to} className="Box-row-link"> |
| 65 | {title} |
| 66 | </LinkOrA> |
| 67 | </div> |
| 68 | ) |
| 69 | } |
| 70 | |
| 71 | function OuterTopicBadge({ topic }: { topic: Topic }) { |
| 72 | const { id, displayName } = topic |
nothing calls this directly
no test coverage detected