"use client" import type { ReactNode } from "react" import { Star, Bot, Download, GitBranch } from "lucide-react" import { useLiveStats } from "./live-stats" interface HeroStatsProps { initialStats: { stars: string totalDownloads: string monthlyDownloads: string weeklyDownloads: string } labels: { githubStars: string specializedAgents: string totalDownloads: string monthlyDownloads: string lifecycleHooks: string } } export function HeroStats({ initialStats, labels }: HeroStatsProps): ReactNode { const stats = useLiveStats(initialStats) return (
{labels.githubStars.replace("{count}", stats.stars)}
{labels.specializedAgents}
{labels.totalDownloads.replace("{count}", stats.totalDownloads)}
{labels.monthlyDownloads.replace("{count}", stats.monthlyDownloads)}
{labels.lifecycleHooks}
) }