import React from "react"; import { ArrowUpRight, Star } from "lucide-react"; import { Section } from "@/components/layout/Section"; import { Eyebrow } from "@/components/ui/eyebrow"; import { GitHubIcon } from "@/components/icons/BrandIcons"; import { Skeleton } from "@/components/ui/skeleton"; import { getRecentRepos } from "@/lib/github"; import { siteConfig } from "@/lib/site"; import { formatRelativeTime } from "@/lib/utils"; const profileUrl = `https://github.com/${siteConfig.githubUsername}`; /** Async island so the GitHub request never blocks the rest of the page. */ export async function GitHubActivity() { const repos = await getRecentRepos(); if (repos.length === 0) return null; return (
{repo.description}
)}{repo.language ? `${repo.language} ยท ` : ""} updated {formatRelativeTime(repo.pushedAt)}