Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tooltip: translator.t('3D View'),
onClick: function onClick(event) {
return viewer3DActions.selectTool3DView();
} },
_react2.default.createElement(Icon3D, null)
)
}, {
index: 5, condition: true, dom: _react2.default.createElement(
_toolbarButton2.default,
{
active: [_constants.MODE_IDLE].includes(mode),
tooltip: translator.t('2D View'),
onClick: function onClick(event) {
return projectActions.setMode(_constants.MODE_IDLE);
} },
[_constants.MODE_3D_FIRST_PERSON, _constants.MODE_3D_VIEW].includes(mode) ? _react2.default.createElement(Icon2D, { style: { color: alterateColor } }) : _react2.default.createElement(_fa.FaMousePointer, { style: { color: alterateColor } })
)
}, {
index: 6, condition: true, dom: _react2.default.createElement(
_toolbarButton2.default,
{
active: [_constants.MODE_3D_FIRST_PERSON].includes(mode),
tooltip: translator.t('3D First Person'),
onClick: function onClick(event) {
return viewer3DActions.selectTool3DFirstPerson();
} },
_react2.default.createElement(_md.MdDirectionsRun, null)
)
}, {
index: 7, condition: true, dom: _react2.default.createElement(
_toolbarButton2.default,
{