Midday / packages /workbench /src /ui /components /shared /empty-state.tsx
Jules
Final deployment with all fixes and verified content
c09f67c
import type { LucideIcon } from "lucide-react";
import { cn } from "@/lib/utils";
interface EmptyStateProps {
icon: LucideIcon;
title: string;
description?: string;
action?: React.ReactNode;
className?: string;
}
export function EmptyState({
icon: Icon,
title,
description,
action,
className,
}: EmptyStateProps) {
return (
<div
className={cn(
"flex flex-col items-center justify-center py-12 text-center",
className,
)}
>
<div className="bg-muted p-4 mb-4">
<Icon className="h-8 w-8 text-muted-foreground" />
</div>
<h3 className="font-medium text-lg mb-1">{title}</h3>
{description && (
<p className="text-sm text-muted-foreground max-w-sm mb-4">
{description}
</p>
)}
{action}
</div>
);
}