import { IconPencil, IconTrash } from '@tabler/icons-react'; import { ActionIcon, Flex, rem } from '@mantine/core'; type Props = { element: T; onChange: (element: T) => Promise; onDelete: (element: T) => Promise; }; const BaseTableActions = ({ element, onChange, onDelete }: Props) => { return ( await onChange(element)}> await onDelete(element)}> ); }; export default BaseTableActions;