import * as React from "react" import Link from "next/link" import { cn } from "@/shared/lib/utils" import { Button } from "@/shared/components/ui/button" interface EmptyStateProps extends React.HTMLAttributes { title: string description: string icon?: React.ElementType action?: { label: string onClick?: () => void href?: string } } export function EmptyState({ icon: Icon, title, description, action, className, ...props }: EmptyStateProps) { return (
{Icon && (
)}

{title}

{description && (

{description}

)} {action && ( action.href ? ( ) : ( ) )}
) }