import { fetchUserRepositories } from "../lib/api"; import { Project } from "../components/Projects"; import { Text } from "../components/utils/Text"; import { H1 } from "../components/utils/Titles"; import { NavBar } from "../components/Navigation"; export default async function Projects() { const projects = await fetchUserRepositories().then((res) => res .filter((data) => !data.fork) .sort((a, b) => (b.stargazers_count ?? 0) - (a.stargazers_count ?? 0)) ); return ( /* Inherits from the RootLayout */