"use client"; import { useState } from "react"; import type { ComponentType, SVGProps } from "react"; import { Button } from "@/components/ui/button"; import { CardContent } from "@/components/ui/card"; import Link from "next/link"; import { ArrowLeft, ArrowRight, Trophy } from "lucide-react"; import { LinkConfig, type IconName } from "@/lib/config"; import { getCountForLink, formatCount, FollowerCounts } from "@/lib/followers/utils"; import { RobloxIcon, DiscordIcon, TiktokIcon, YoutubeIcon, FormIcon, DonateIcon } from "@/lib/icons"; const iconMap: Record>> = { roblox: RobloxIcon, discord: DiscordIcon, tiktok: TiktokIcon, youtube: YoutubeIcon, form: FormIcon, donate: DonateIcon, leaderboard: Trophy, }; export function LinkCard({ counts, links1, links2 }: { counts: FollowerCounts, links1: LinkConfig[], links2: LinkConfig[] }) { const [isPage2, setIsPage2] = useState(false); const currentLinks = isPage2 ? links2 : links1; return (
); }