"use client"; import { ReactNode, memo } from "react"; import { Button } from "./Button"; export interface EmptyStateProps { icon: ReactNode; title: string; description: string; children?: ReactNode; action?: { label: string; onClick: () => void; variant?: "primary" | "secondary" | "ghost"; }; } const EmptyState = memo(function EmptyState({ icon, title, description, children, action, }: EmptyStateProps) { return (
{description}
{children} {action && ( )}