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 { useDispatch, useSelector } from 'react-redux';
import { SlideTransition } from '@filerobot/common';
import { selectSharePanelFor, sharePanelOpened } from '../../slices/panels.slice';
import ShareDialog from './ShareDialog';
import { jsx as _jsx } from "react/jsx-runtime";
var SharePanel = function SharePanel(_ref) {
  var zIndex = _ref.zIndex;
  var dispatch = useDispatch();
  var sharePanelFor = useSelector(selectSharePanelFor);
  var closeSharePanel = function closeSharePanel() {
    return dispatch(sharePanelOpened(null));
  };
  return /*#__PURE__*/_jsx(SlideTransition, {
    zIndex: zIndex,
    handleClose: closeSharePanel,
    children: sharePanelFor && /*#__PURE__*/_jsx(ShareDialog, {
      shareableFilesUuids: sharePanelFor
    })
  });
};
export default SharePanel;