--- import Icon from './AstroIcon.astro'; export interface Props { secondaryValue?: string; value: string; text: string; } const { value, text, secondaryValue } = Astro.props; const isGitHubStars = text.toLowerCase() === 'github stars'; const isRegistered = text.toLowerCase() === 'registered users'; const isDiscordMembers = text.toLowerCase() === 'discord members'; ---
{ isGitHubStars && (

Rank {secondaryValue}  out of 28M!

) } { isRegistered && (

{secondaryValue} every month

) } { isDiscordMembers && (

{secondaryValue} 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
) }