--- 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'); ---
{ isGitHubStars && (

Rank {repoRank}  out of 28M!

) } { isRegistered && (

+75k every month

) } { isDiscordMembers && (

+1.5k every month

) }

{value}

{text}

{ isGitHubStars && (
Star us on GitHub
Help us reach #1
) } { isRegistered && (
Register yourself
Commit to your growth
) } { isDiscordMembers && (
Join on Discord
Join the community
) }