github.com/argoproj/argo-cd/v3@v3.2.1/ui/src/app/shared/components/repo.tsx (about) 1 import * as React from 'react'; 2 import {repoUrl} from './urls'; 3 4 export const Repo = ({url, children}: {url: string; children?: React.ReactNode}) => { 5 const href = repoUrl(url); 6 const content = children || url; 7 return href !== null ? ( 8 <a href={href} target='_blank'> 9 {content} 10 </a> 11 ) : ( 12 <span>{content}</span> 13 ); 14 };