Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Dropdown = withEditorProps(props => {
return (
<menu>
{createCommandMenu(
[
"exportSequenceAsGenbank",
"exportSequenceAsFasta",
"exportSequenceAsTeselagenJson"
],
getCommands({ props })
)}
</menu>
);
});
const VisibilityOptions = withEditorProps(function(props) {
return (
<menu>
{createCommandMenu(viewSubmenu, getCommands({ props }), {
useTicks: true,
omitIcons: true
})}
</menu>
);
});