Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import * as React from "react";
import { Menu as BaseMenu, MenuItem, MenuAnchor } from "rmwc/Menu";
type Props = {
// One or more Menu.Item components.
children: React.ChildrenArray>,
// A handler which triggers the menu, eg. button or link.
handle?: React.Node
};
type State = {
menuIsOpen: boolean
};
MenuItem.displayName = "Menu.Item";
class Menu extends React.Component {
static Item = MenuItem;
static defaultProps = {
handle: null
};
state = {
menuIsOpen: false
};
render() {
return (