import { useTranslation } from "react-i18next";
import { EyeOff, List } from "lucide-react";
import ContextMenu from "./ContextMenu";
export interface ChartContextMenuProps {
x: number;
y: number;
categoryName: string;
onHide: () => void;
onViewDetails: () => void;
onClose: () => void;
}
export default function ChartContextMenu({
x,
y,
categoryName,
onHide,
onViewDetails,
onClose,
}: ChartContextMenuProps) {
const { t } = useTranslation();
return (
,
label: t("charts.viewTransactions"),
onClick: onViewDetails,
},
{
icon: ,
label: t("charts.hideCategory"),
onClick: onHide,
},
]}
/>
);
}