github.com/argoproj/argo-cd@v1.8.7/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 ? <a href={href}>{content}</a> : <span>{content}</span>;
     8  };