import { useContext } from "react";
import { StoreCtx } from "./context";
function useContextComponent() {
  var _useContext = useContext(StoreCtx),
    saveComponentConfig = _useContext.saveComponentConfig,
    getComponentConfig = _useContext.getComponentConfig,
    bind = _useContext.bind,
    emit = _useContext.emit;
  return {
    saveComponentConfig: saveComponentConfig,
    getComponentConfig: getComponentConfig,
    bind: bind,
    emit: emit
  };
}
export default useContextComponent;