import { Menu, Text } from '@mantine/core'; import { showNotification } from '@mantine/notifications'; import { Check, Edit, Trash } from 'tabler-icons-react'; export default function AppShelfMenu(props: any) { const { name, removeitem: removeItem } = props; return ( Settings } onClick={() => { showNotification({ color: 'red', title: Feature not yet implemented, message: `${name} could not be edited`, }); }} > Rename Danger zone { removeItem(name); showNotification({ autoClose: 5000, title: ( Service {name} removed successfully ), color: 'green', icon: , message: undefined, }); }} icon={} > Delete ); }