Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function ToolbarSaveButton(_ref, _ref2) {
var state = _ref.state;
var translator = _ref2.translator;
var saveProjectToFile = function saveProjectToFile(e) {
e.preventDefault();
state = _export.Project.unselectAll(state).updatedState;
(0, _browser.browserDownload)(state.get('scene').toJS());
};
return _react2.default.createElement(
_toolbarButton2.default,
{ active: false, tooltip: translator.t('Save project'), onClick: saveProjectToFile },
_react2.default.createElement(_fa.FaSave, null)
);
}