import { fetchUserRepositories } from "@/app/lib/api"; import { Star } from "./icons/Star"; import Link from "next/link"; import { H2 } from "./utils/Titles"; import { ExternalLink } from "./icons/ExternalLink"; import { Archived } from "./icons/Archived"; export const Projects = async () => { const projects = await fetchUserRepositories().then((res) => res .filter( (data) => !data.fork && data.name !== "uwuifyy" && data.name !== "Enso-Bot" && !data.archived ) .sort((a, b) => (b.stargazers_count ?? 0) - (a.stargazers_count ?? 0)) .slice(0, 6) ); return (

Favourite Projects

{projects.map((project) => ( ))}
); }; export const Project = ({ project }: { project: RepositoryData }) => { return (
{project.name}  {project.description && (
{project.description}
)}
{project.archived && (

)}

{project.stargazers_count}

); };