import React from 'react'; import type { GitHubRepoInfo } from '~/types/GitHub'; interface RepositoryCardProps { repo: GitHubRepoInfo; onClone?: (repoUrl: string) => void; } export function RepositoryCard({ repo, onClone }: RepositoryCardProps) { return (
{repo.name}
{repo.private && ( Private )}
{repo.stargazers_count.toLocaleString()}
{repo.forks_count.toLocaleString()}
{repo.description && (

{repo.description}

)} {repo.topics && repo.topics.length > 0 && (
{repo.topics.slice(0, 3).map((topic) => ( {topic} ))} {repo.topics.length > 3 && ( +{repo.topics.length - 3} )}
)}
{repo.language && (