MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ErrorState

Function ErrorState

packages/react/src/components/error-state.tsx:4–22  ·  view source on GitHub ↗
(props: {
  readonly message: string;
  readonly onRetry: () => void;
  readonly className?: string;
})

Source from the content-addressed store, hash-verified

2import { cn } from "../lib/utils";
3
4export function ErrorState(props: {
5 readonly message: string;
6 readonly onRetry: () => void;
7 readonly className?: string;
8}) {
9 return (
10 <div
11 className={cn(
12 "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3",
13 props.className,
14 )}
15 >
16 <p className="text-sm text-destructive">{props.message}</p>
17 <Button type="button" variant="outline" size="sm" onClick={props.onRetry}>
18 Retry
19 </Button>
20 </div>
21 );
22}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected