"use client";

interface AuditEmptyStateProps {
  hasFilters: boolean;
  onClearFilters?: () => void;
}

export function AuditEmptyState({
  hasFilters,
  onClearFilters,
}: AuditEmptyStateProps) {
  return (
    <div className="flex flex-col items-center justify-center p-8 text-center">
      <div className="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-4">
        <svg
          className="w-6 h-6 text-muted-foreground"
          fill="none"
          stroke="currentColor"
          viewBox="0 0 24 24"
        >
          <path
            strokeLinecap="round"
            strokeLinejoin="round"
            strokeWidth={2}
            d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"
          />
        </svg>
      </div>
      <h3 className="text-lg font-medium text-foreground mb-2">
        {hasFilters ? "No Matching Entries" : "No Audit Entries"}
      </h3>
      <p className="text-muted-foreground max-w-md">
        {hasFilters
          ? "No audit entries match the selected filters."
          : "No queries or actions have been recorded yet. Entries will appear here as agents interact with the system."}
      </p>
      {hasFilters && onClearFilters && (
        <button
          onClick={onClearFilters}
          className="mt-4 text-sm text-primary hover:underline"
        >
          Clear filters to see all entries
        </button>
      )}
    </div>
  );
}
