"use client"; import { useGitHubAppProvider } from "@/providers/GitHubApp"; import { InstallationPrompt } from "./installation-prompt"; import { Button } from "@/components/ui/button"; import { RefreshCw } from "lucide-react"; import { cn } from "@/lib/utils"; interface RepositoryListProps { className?: string; } export function RepositoryList({ className = "" }: RepositoryListProps) { const { isInstalled, isLoading, error, repositories, refreshRepositories } = useGitHubAppProvider(); if (isLoading) { return (
{error}
No repositories found. You may need to grant access to repositories in GitHub.
Manage GitHub App permissions{repo.description || "No description"}
Need to add or remove repositories?{" "} Manage on GitHub