import { GitHubRepository , GitHubRepositoryProps } from 'src/components/embeds/GitHubRepository' ; import { FiGithub } from 'react-icons/fi' ; import { ReferenceCardProps , ReferenceCard } from './ReferenceCard' ; export interface RepoReferenceProps extends GitHubRepositoryProps , Omit < ReferenceCardProps , 'title' > { } export const RepoReference = ( { ... props } ) => { const url = `https://github.com/${ props . slug }` ; return ( < ReferenceCard href = { url } icon = { FiGithub } iconProps = { { top : - 2 } } > < GitHubRepository noMargin useFullSlug linkTitle = { false } { ... props } /> < /ReferenceCard>); } ;