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