How to use the react-icons/fa.FaSave function in react-icons

To help you get started, we’ve selected a few react-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cvdlab / react-planner / lib / components / toolbar / toolbar-save-button.js View on Github external
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)
  );
}