import { Download } from "lucide-react"; interface ExportCsvLinkProps { /** URL endpoint export, mis. `/api/admin/export/refunds`. */ href: string; /** Query string current filter (tanpa leading `?`). */ query?: string; label?: string; } /** * Tombol download CSV — anchor biasa supaya browser tangani download via * `Content-Disposition: attachment` header dari server. */ export function ExportCsvLink({ href, query, label = "Export CSV", }: ExportCsvLinkProps) { const url = query ? `${href}?${query}` : href; return ( {label} ); }