import Panel from '~/components/Panel' import { useSendTelemetryEvent } from '~/lib/telemetry' import { Star } from 'lucide-react' import { motion } from 'motion/react' import Link from 'next/link' import { useSyncExternalStore } from 'react' const subscribeToNothing = () => () => {} const RepoCard = ({ repo, activeTab, index }: { repo: any; activeTab: number; index: number }) => { const sendTelemetryEvent = useSendTelemetryEvent() const isHydrated = useSyncExternalStore( subscribeToNothing, () => true, () => false ) const countLocale = isHydrated ? undefined : 'en-US' return ( sendTelemetryEvent({ action: 'open_source_repo_card_clicked', properties: { repoName: repo.name }, }) } >

{repo.name}

{repo.description}

{repo.full_name}

{repo.forks.toLocaleString(countLocale)}
{repo.stargazers_count.toLocaleString(countLocale)}
) } export default RepoCard