quickfix add missing module

menu action buttons is a planned module. not yet implemented
This commit is contained in:
cv
2021-05-05 19:33:35 +02:00
parent 2b9c5ffc95
commit 70f8e14c9d
@@ -0,0 +1,33 @@
import { Menu, MenuButton, MenuItem, MenuList } from '@chakra-ui/menu';
import { IconButton } from '@chakra-ui/button';
import {
FiZap,
FiTrash2,
} from 'react-icons/fi';
export default function MenuActionButtons(props) {
const menuStyle = {
color: '#000000',
backgroundColor: 'rgba(255,255,255,1)',
};
return (
<Menu>
<MenuButton
as={IconButton}
aria-label='Options'
size={props.size || 'xs'}
icon={<FiZap />}
_expanded={{ bg: 'pink.300', color: 'white' }}
_focus={{ boxShadow: 'none' }}
backgroundColor={'orange.200'}
color={'orange.500'}
/>
<MenuList style={menuStyle}>
<MenuItem icon={<FiTrash2 />} onClick={props.deleteAllHandler}>
Delete All
</MenuItem>
</MenuList>
</Menu>
);
}