"use client";

interface QuarantineEmptyStateProps {
  hasFilter: boolean;
  onClearFilter?: () => void;
}

export function QuarantineEmptyState({
  hasFilter,
  onClearFilter,
}: QuarantineEmptyStateProps) {
  return (
    <div className="flex flex-col items-center justify-center p-8 text-center">
      <div className="w-12 h-12 rounded-full bg-emerald-500/10 flex items-center justify-center mb-4">
        <svg
          className="w-6 h-6 text-emerald-600 dark:text-emerald-400"
          fill="none"
          stroke="currentColor"
          viewBox="0 0 24 24"
        >
          <path
            strokeLinecap="round"
            strokeLinejoin="round"
            strokeWidth={2}
            d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
          />
        </svg>
      </div>
      <h3 className="text-lg font-medium text-foreground mb-2">
        {hasFilter ? "No Matching Items" : "Quarantine Empty"}
      </h3>
      <p className="text-muted-foreground max-w-md">
        {hasFilter
          ? "No quarantined assertions match the selected filter."
          : "All assertions have passed validation. Nothing requires review."}
      </p>
      {hasFilter && onClearFilter && (
        <button
          onClick={onClearFilter}
          className="mt-4 text-sm text-primary hover:underline"
        >
          Clear filter to see all items
        </button>
      )}
    </div>
  );
}
