"use client";

import {
  ChartExportMenuButton,
  type ChartExportFormat,
} from "@/components/ui/chart-export-menu-button";

type ExportIconButtonProps = {
  // Runs when the user picks CSV / XLSX / Image from the menu. Optional:
  // without it the menu still opens but picking a format does nothing,
  // which is exactly how the ministry dashboard behaves today.
  onExport?: (format: ChartExportFormat) => void;
};

export function ExportIconButton({ onExport }: ExportIconButtonProps) {
  return <ChartExportMenuButton variant="ghost" onExport={onExport} />;
}
