"use client"; import React from "react"; import { X, Info, RefreshCw, type LucideIcon } from "lucide-react"; export default function ReportViewerModal({ title, description, icon: Icon, onClose, actions, filters, onRefresh, busy, children, }: { title: string; description?: string; icon?: LucideIcon; onClose: () => void; actions?: React.ReactNode; filters?: React.ReactNode; onRefresh?: () => void; busy?: boolean; children: React.ReactNode; }) { return ( // Above the site header (Navbar is `sticky top-0 z-50`) so the popup never sits behind it.
e.stopPropagation()}>
{Icon && (
)}

{title}

{description &&

{description}

}
{actions}
{actions && (
{actions}
)}
{filters || This report has no extra filters beyond Events and Date range in the sidebar.}
{onRefresh && ( )}
{children}
); } export function ReportActionButton({ icon: Icon, label, onClick }: { icon: LucideIcon; label: string; onClick: () => void }) { return ( ); }