Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/explorer / lib / components / FileWindowPanel / tabs / VersioningTab / VersionItemContextMenu.js
Size: Mime:
import { Refresh, Download, Remove } from '@scaleflex/icons';
import { jsx as _jsx } from "react/jsx-runtime";
var VersionItemContextMenu = function VersionItemContextMenu(restoreFileVersion, downloadFileVersion, deleteFileVersion, fileVersion, isCurrentVersion, toggleDownloadConsentModal) {
  return [{
    content: 'versionedTabRestoreLabel',
    onClick: function onClick() {
      restoreFileVersion(fileVersion);
    },
    prefix: function prefix(_ref) {
      var iconPrimaryColor = _ref.iconPrimaryColor;
      return /*#__PURE__*/_jsx(Refresh, {
        color: iconPrimaryColor
      });
    },
    key: 'RESTORE_OPTION',
    hideOption: function hideOption() {
      return isCurrentVersion;
    }
  }, {
    content: 'mutualizedDownloadButton',
    onClick: function onClick() {
      toggleDownloadConsentModal(function () {
        return downloadFileVersion(fileVersion);
      });
    },
    prefix: function prefix(_ref2) {
      var iconPrimaryColor = _ref2.iconPrimaryColor;
      return /*#__PURE__*/_jsx(Download, {
        color: iconPrimaryColor
      });
    },
    key: 'DOWNLOAD_OPTION'
  }, {
    content: 'mutualizedDeleteButtonLabel',
    onClick: function onClick() {
      deleteFileVersion(fileVersion);
    },
    prefix: function prefix(_ref3) {
      var iconPrimaryColor = _ref3.iconPrimaryColor;
      return /*#__PURE__*/_jsx(Remove, {
        color: iconPrimaryColor
      });
    },
    key: 'REMOVE_OPTION',
    hoverTheme: 'danger',
    hideOption: function hideOption() {
      return isCurrentVersion;
    }
  }];
};
export default VersionItemContextMenu;