import * as React from "react";

interface EmptyStateProps {
  icon: React.ReactNode;
  title: string;
  description: string;
  action?: React.ReactNode;
}

export function EmptyState({ icon, title, description, action }: EmptyStateProps) {
  return (
    <div className="flex flex-col items-center justify-center rounded-xl border border-dashed border-[#CBD5E1] bg-white px-6 py-12 text-center">
      <div className="flex h-11 w-11 items-center justify-center rounded-xl border border-[#E5E7EB] bg-[#F8FAFC] text-[#64748B]">
        {icon}
      </div>
      <h3 className="mt-3.5 text-sm font-semibold text-[#111827]">{title}</h3>
      <p className="mt-1 max-w-md text-xs leading-relaxed text-[#64748B]">{description}</p>
      {action && <div className="mt-4">{action}</div>}
    </div>
  );
}
