'use strict';

var pixi_js = require('pixi.js');
var o = require('react');
var Context = require('../components/Context.js');
var invariant = require('../helpers/invariant.js');

"use strict";
function useApplication() {
  const appContext = o.useContext(Context.Context);
  invariant.invariant(
    appContext.app instanceof pixi_js.Application,
    "No Context found with `%s`. Make sure to wrap component with `%s`",
    "Application",
    "AppProvider"
  );
  return appContext;
}

exports.useApplication = useApplication;
//# sourceMappingURL=useApplication.js.map
