--- import { ChevronUp } from 'lucide-react'; import Icon from './AstroIcon.astro'; import { getRepositoryRank } from '../lib/github'; export interface Props { value: string; text: string; } const { value, text } = Astro.props; const isGitHubStars = text.toLowerCase() === 'github stars'; const isRegistered = text.toLowerCase() === 'registered users'; const isDiscordMembers = text.toLowerCase() === 'discord members'; const repoRank = await getRepositoryRank('kamranahmedse/developer-roadmap'); ---
Rank {repoRank} out of 28M!
) } { isRegistered && (+75k every month
) } { isDiscordMembers && (+1.5k every month
) }{value}
{text}