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 { useSelector } from 'react-redux';
import { useExplorer } from '../../../../hooks';
import { selectIsShareboxView } from '../../../../slices/views.slice';
import PinsOverlay from './PinsOverlay';
import { jsx as _jsx } from "react/jsx-runtime";
var PrependedOptions = function PrependedOptions(_ref) {
  var pins = _ref.pins,
    setPins = _ref.setPins,
    searchInput = _ref.searchInput,
    isSearchInputHasFilters = _ref.isSearchInputHasFilters,
    showSavePinModal = _ref.showSavePinModal,
    pinAnchor = _ref.pinAnchor,
    pinAnchorEl = _ref.pinAnchorEl,
    setPinAnchorEl = _ref.setPinAnchorEl,
    toggleOverlay = _ref.toggleOverlay,
    sendSearch = _ref.sendSearch;
  var _useExplorer = useExplorer(),
    floaty = _useExplorer.opts.floaty;
  var isShareboxView = useSelector(selectIsShareboxView);
  if (!floaty || isShareboxView) return null;
  return /*#__PURE__*/_jsx("div", {
    className: "filerobot-Explorer-TopBar-PrependedOptions",
    children: /*#__PURE__*/_jsx(PinsOverlay, {
      pins: pins,
      setPins: setPins,
      searchInput: searchInput,
      isSearchInputHasFilters: isSearchInputHasFilters,
      showSavePinModal: showSavePinModal,
      pinAnchor: pinAnchor,
      pinAnchorEl: pinAnchorEl,
      setPinAnchorEl: setPinAnchorEl,
      toggleOverlay: toggleOverlay,
      sendSearch: sendSearch
    })
  });
};
export default PrependedOptions;