import { IconDotsVertical, IconDownload, IconTrash } from '@/ui/display/icon'; import { LightIconButton } from '@/ui/input/button/components/LightIconButton'; import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown'; import { MenuItem } from '@/ui/navigation/menu-item/components/MenuItem'; type AttachmentDropdownProps = { onDownload: () => void; onDelete: () => void; scopeKey: string; }; export const AttachmentDropdown = ({ onDownload, onDelete, scopeKey, }: AttachmentDropdownProps) => { const dropdownId = `${scopeKey}-settings-field-active-action-dropdown`; const { closeDropdown } = useDropdown(dropdownId); const handleDownload = () => { onDownload(); closeDropdown(); }; const handleDelete = () => { onDelete(); closeDropdown(); }; return ( } dropdownComponents={ } dropdownHotkeyScope={{ scope: dropdownId, }} /> ); };