31 lines · 801 B · TypeScript
RawDownload
import { RefreshCwIcon } from "lucide-react"; import { cn } from "~/lib/utils"; import { Button } from "../ui/button"; export function PullRequestActivityUnavailableState({  error,  onRetry,  compact = false,}: {  error: string;  onRetry: () => void;  compact?: boolean;}) {  return (    <div      className={cn(        "flex flex-col items-center justify-center gap-2 text-center",        compact ? "py-3" : "min-h-48 px-4 py-10",      )}    >      <p className="text-sm font-medium text-foreground">Could not load pull request activity</p>      <p className="max-w-md text-xs text-muted-foreground">{error}</p>      <Button size="sm" variant="outline" onClick={onRetry}>        <RefreshCwIcon aria-hidden className="size-3.5" />        Retry      </Button>    </div>  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t