import React, { useState } from 'react'; import { EllipsisHorizontalCircleIcon, PencilSquareIcon, TrashIcon } from '@heroicons/react/24/outline'; import type { InventoryItem } from '../../hooks/useInventory'; interface Props { item: InventoryItem; onEdit: (item: InventoryItem) => void; onDelete: (item: InventoryItem) => void; } /** «عملیات» trigger + dropdown — mirrors the tauri InventoryActionsPopover. */ export default function InventoryActionsMenu({ item, onEdit, onDelete }: Props) { const [open, setOpen] = useState(false); return (
{open && ( <>
setOpen(false)} style={{ position: 'fixed', inset: 0, zIndex: 30 }} />
)}
); }