import { ActionIcon, Menu, Tooltip } from '@mantine/core'; /** * A ButtonMenu is a button that opens a menu when clicked. * It features a number of actions, which can be selected by the user. */ export function ButtonMenu({ icon, actions, tooltip = '', label = '' }: Readonly<{ icon: any; actions: React.ReactNode[]; label?: string; tooltip?: string; }>) { return ( {icon} {label && {label}} {actions.map((action, i) => ( {action} ))} ); }