import { Plus } from "lucide-react"; import type { LucideIcon } from "lucide-react"; import type { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; interface EmptyStateProps { /** Retained for callers that supplied a section icon before the shared brand artwork. */ icon?: LucideIcon; /** Large decorative artwork; shares hover/focus with the action below. */ graphic?: ReactNode; placement?: "center" | "upper"; /** Optional bold heading rendered above the message. */ title?: string; message: string; /** Optional secondary line rendered under the primary message. */ description?: string; action?: string; onAction?: () => void; /** Hide the leading "+" glyph on the action button (e.g. for a "Set up" CTA). */ hideActionIcon?: boolean; } export function EmptyState({ graphic, placement = "center", title, message, description, action, onAction, hideActionIcon = false, }: EmptyStateProps) { return (
{title}
}{message}
{description &&{description}
}