"use strict";

exports.__esModule = true;
exports.useNotification = exports.default = void 0;
var _react = require("react");
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var useNotification = exports.useNotification = function useNotification(snackPack, setSnackPack) {
  var addNotification = (0, _react.useCallback)(function (message, type) {
    var snack = {
      key: new Date().getTime(),
      message: message,
      type: type
    };
    setSnackPack([snack].concat(snackPack));
  }, [snackPack, setSnackPack]);
  return addNotification;
};
__signature__(useNotification, "useCallback{addNotification}");
__signature__(useNotification, "useCallback{addNotification}");
var _default = useNotification;
var _default2 = _default;
var _default3 = exports.default = _default2;
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useNotification, "useNotification", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
  reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(useNotification, "useNotification", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
  reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/MaterialUI/Feedback/useNotification.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();