import React from "react"; import { clsx } from "clsx"; interface EmptyStateProps { icon?: React.ReactNode; title?: string; message: string; action?: React.ReactNode | { label: string; onClick: () => void }; className?: string; } export default function EmptyState({ icon, title, message, action, className, }: EmptyStateProps) { return (
{icon && (
{icon}
)} {title && (

{title}

)}

{message}

{action && (
{typeof action === "object" && "label" in action && "onClick" in action ? ( ) : ( action )}
)}
); }