28 lines
582 B
TypeScript
28 lines
582 B
TypeScript
import React from 'react';
|
|
import {
|
|
Menu,
|
|
MenuButton,
|
|
MenuList,
|
|
MenuItem,
|
|
IconButton,
|
|
} from '@chakra-ui/react';
|
|
import { EditIcon } from '@chakra-ui/icons';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
const MasterActionsMenu = () => {
|
|
const { t } = useTranslation('~', {
|
|
keyPrefix: 'dry-wash.arm.master.table.actionsMenu',
|
|
});
|
|
|
|
return (
|
|
<Menu>
|
|
<MenuButton icon={<EditIcon />} as={IconButton} variant='outline' />
|
|
<MenuList>
|
|
<MenuItem>{t('delete')}</MenuItem>
|
|
</MenuList>
|
|
</Menu>
|
|
);
|
|
};
|
|
|
|
export default MasterActionsMenu;
|