Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var state = _ref.state;
var translator = _ref2.translator,
projectActions = _ref2.projectActions;
var loadProjectFromFile = function loadProjectFromFile(event) {
event.preventDefault();
(0, _browser.browserUpload)().then(function (data) {
projectActions.loadProject(JSON.parse(data));
});
};
return _react2.default.createElement(
_toolbarButton2.default,
{ active: false, tooltip: translator.t("Load project"), onClick: loadProjectFromFile },
_react2.default.createElement(_fa.FaFolderOpen, null)
);
}