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    
Size: Mime:
import { PLUGINS_IDS } from '@filerobot/utils/lib/constants';
import ToggleButton from '@filerobot/common/lib/ToggleButton';
import { usePlugin } from '@filerobot/core/lib/hooks';
import Styled from './UploadsList.styled';
import { useExplorerI18n } from '../../../hooks';
import { jsx as _jsx } from "react/jsx-runtime";
var UploadsListHeader = function UploadsListHeader(_ref) {
  var isUploadSettings = _ref.isUploadSettings,
    toggleUploadSettings = _ref.toggleUploadSettings;
  var i18n = useExplorerI18n();
  var isPreUploadPluginFound = Boolean(usePlugin(PLUGINS_IDS.PREUPLOAD_PROCESSORS));
  return /*#__PURE__*/_jsx(Styled.UploadHeader, {
    children: !isUploadSettings && isPreUploadPluginFound && /*#__PURE__*/_jsx(ToggleButton, {
      onClick: toggleUploadSettings,
      label: i18n('explorerPreUploadSettingsLabel')
    })
  });
};
export default UploadsListHeader;