({ link }: Props)
| 6 | } |
| 7 | |
| 8 | const CodeLink = ({ link }: Props) => { |
| 9 | if (Config.REPO_URL) { |
| 10 | let filename = link.split(".").pop(); |
| 11 | return ( |
| 12 | <a |
| 13 | rel="noopener noreferrer" |
| 14 | target="_blank" |
| 15 | href={Config.REPO_URL + "/search?q=filename:" + filename} |
| 16 | className="unselectable" |
| 17 | > |
| 18 | <i className="tiny material-icons">open_in_new</i> |
| 19 | </a> |
| 20 | ); |
| 21 | } else { |
| 22 | return <span></span>; |
| 23 | } |
| 24 | }; |
| 25 | |
| 26 | export default CodeLink; |
nothing calls this directly
no outgoing calls
no test coverage detected