import { ExternalLinkIcon, GitPullRequestIcon, RefreshCwIcon } from "lucide-react"; import { Button } from "../ui/button"; import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "../ui/empty"; export function PullRequestsUnavailableState({ title = "Could not load pull requests", error, onRetry, gitHubUrl, }: { title?: string; error: string; onRetry?: () => void; gitHubUrl?: string; }) { return ( {title} {/* The caller names the fix — update the environment, install gh, sign in — so this shows its message rather than trying to infer one from the failure text. */} {error} {onRetry || gitHubUrl ? ( {onRetry ? ( ) : null} {gitHubUrl ? ( ) : null} ) : null} ); }