22 lines · 597 B · TypeScript
RawDownload
import { Button } from "./button";import { cn } from "../lib/utils"; export function ErrorState(props: {  readonly message: string;  readonly onRetry: () => void;  readonly className?: string;}) {  return (    <div      className={cn(        "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3",        props.className,      )}    >      <p className="text-sm text-destructive">{props.message}</p>      <Button type="button" variant="outline" size="sm" onClick={props.onRetry}>        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