Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
>
{content}
);
};
Menu.propTypes = {
dropAlign: PropTypes.shape({
top: PropTypes.string,
left: PropTypes.string,
}),
dropProps: PropTypes.shape({}),
items: PropTypes.arrayOf({}),
messages: PropTypes.shape({
openMenu: PropTypes.string,
closeMenu: PropTypes.string,
}),
justifyContent: PropTypes.string,
};
Menu.defaultProps = {
dropAlign: {
top: 'top',
left: 'left',
},
dropProps: {},
items: [],
messages: {
openMenu: 'Open Menu',
}
>
{content}
);
};
Menu.propTypes = {
dropAlign: PropTypes.shape({
top: PropTypes.string,
left: PropTypes.string,
}),
dropProps: PropTypes.shape({}),
items: PropTypes.arrayOf({}),
messages: PropTypes.shape({
openMenu: PropTypes.string,
closeMenu: PropTypes.string,
}),
justifyContent: PropTypes.string,
};
Menu.defaultProps = {
dropAlign: {
top: 'top',
left: 'left',
},
dropProps: {},
items: [],
messages: {
openMenu: 'Open Menu',