import { IconButton } from '@chakra-ui/button'; import { Menu, MenuButton, MenuItem, MenuList } from '@chakra-ui/menu'; import { Tooltip } from '@chakra-ui/tooltip'; import { FiClock } from '@react-icons/all-files/fi/FiClock'; import { FiMinusCircle } from '@react-icons/all-files/fi/FiMinusCircle'; import { FiPlus } from '@react-icons/all-files/fi/FiPlus'; import PropTypes from 'prop-types'; import { tooltipDelayMid } from '../../../ontimeConfig'; export default function ActionButtons(props) { const { showAdd, showDelay, showBlock, actionHandler } = props; const menuStyle = { color: '#000000', backgroundColor: 'rgba(255,255,255,1)', }; return ( } _expanded={{ bg: 'orange.300', color: 'white' }} _focus={{ boxShadow: 'none' }} backgroundColor='orange.200' color='orange.500' /> } onClick={() => actionHandler('event')} isDisabled={!showAdd}> Add Event after } onClick={() => actionHandler('delay')} isDisabled={!showDelay}> Add Delay after } onClick={() => actionHandler('block')} isDisabled={!showBlock} > Add Block after ); } ActionButtons.propTypes = { showAdd: PropTypes.bool, showDelay: PropTypes.bool, showBlock: PropTypes.bool, actionHandler: PropTypes.func, }