Files
paperclip/ui/src/components/EmptyState.tsx
Forgotten 0d436911cd Polish UI components and rework AgentConfigForm
Major AgentConfigForm rework with improved adapter configuration
fields and layout. Refine sidebar, breadcrumbs, and card/tab
components for visual consistency. Clean up page layouts across
Activity, Agents, Approvals, Costs, Dashboard, Goals, Inbox,
Issues, Org, and Projects pages. Minor heartbeat-run CLI fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 10:43:25 -06:00

28 lines
800 B
TypeScript

import { Plus } from "lucide-react";
import type { LucideIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
interface EmptyStateProps {
icon: LucideIcon;
message: string;
action?: string;
onAction?: () => void;
}
export function EmptyState({ icon: Icon, message, action, onAction }: EmptyStateProps) {
return (
<div className="flex flex-col items-center justify-center py-16 text-center">
<div className="bg-muted/50 p-4 mb-4">
<Icon className="h-10 w-10 text-muted-foreground/50" />
</div>
<p className="text-sm text-muted-foreground mb-4">{message}</p>
{action && onAction && (
<Button onClick={onAction}>
<Plus className="h-4 w-4 mr-1.5" />
{action}
</Button>
)}
</div>
);
}