import React, { createContext, useContext, useMemo } from 'react';
const SyncBlockActionsContext = /*#__PURE__*/createContext(null);
export const useSyncBlockActions = () => {
  return useContext(SyncBlockActionsContext);
};
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
export const SyncBlockActionsProvider = ({
  children,
  removeSyncBlock,
  fetchSyncBlockSourceInfo
}) => {
  const value = useMemo(() => ({
    deleteSyncBlock: removeSyncBlock,
    fetchSourceInfo: fetchSyncBlockSourceInfo
  }), [removeSyncBlock, fetchSyncBlockSourceInfo]);
  return /*#__PURE__*/React.createElement(SyncBlockActionsContext.Provider, {
    value: value
  }, children);
};