Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_list.ListItem,
{
onClick: _this3._onMenuItem(item),
key: 'menuItem' + index++ },
item.id === 'translation' ? _react2.default.createElement(_select.Select, {
label: item.title,
options: languages,
onChange: function onChange(evt) {
return _this3.changeLanguage(evt.target.value);
},
value: _this3.state.selectedLanguage,
style: {
color: theme.navigationTextButton
}
}) : _react2.default.createElement(
_list.ListItemPrimaryText,
null,
translatedTitle
)
);
});
}