import './menu.scss';
import Button from '../molecules/button';
import router from '@elementor/router';
import { Match, LocationProvider } from '@reach/router';
export default function Menu( props ) {
const ActionButton = ( itemProps ) => {
if ( ! props.actionButton ) {
return '';
}
return props.actionButton( itemProps );
};
if ( props.promotion ) {
return (
);
}
return (
);
}
Menu.propTypes = {
menuItems: PropTypes.arrayOf( PropTypes.object ),
children: PropTypes.any,
actionButton: PropTypes.func,
promotion: PropTypes.bool,
};