'use client' import Image from 'next/image' import { useMutation, useQueryClient } from '@tanstack/react-query' import api from '@/services/api' export interface GitHubProfileCardProps { login: string name?: string bio?: string avatarUrl?: string followers?: number following?: number publicRepos?: number company?: string location?: string websiteUrl?: string isLoading?: boolean } function formatCount(n: number): string { if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M` if (n >= 1_000) return `${(n / 1_000).toFixed(1)}k` return String(n) } function normalizeWebsiteUrl(url: string): string { return /^https?:\/\//i.test(url) ? url : `https://${url}` } function GitHubProfileCardSkeleton() { return (
{displayName}
@{login}
{bio}
)} {/* Stats row */}Failed to follow. Please try again.
)}