import { Plus } from "lucide-react"; import type { LucideIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; interface EmptyStateProps { icon: LucideIcon; /** 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({ icon: Icon, title, message, description, action, onAction, hideActionIcon = false, }: EmptyStateProps) { return (
{title}
{message}
> ) : ( <>{message}
{description &&{description}
} > )} {action && onAction && ( )}