"use strict";

exports.__esModule = true;
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _reactRedux = require("react-redux");

var _main = require("../../store/performance/main");

require("./style.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var RedirectScreen = function RedirectScreen(props) {
  var dispatch = (0, _reactRedux.useDispatch)();

  var handleReturnAdmin = function handleReturnAdmin() {
    props.setShowRedirectScreen(false);
    dispatch((0, _main.shouldRedirectTo)());
  };

  var handleRecordNew = function handleRecordNew() {
    props.setShowRedirectScreen(false);
    dispatch((0, _main.resetAll)());
    props.setShowBetaScreen(true); // show beta screen
  };

  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "result-record"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "container"
  }, /*#__PURE__*/_react["default"].createElement("h2", {
    className: "splash-subtitle"
  }, "What would you like to do?"), /*#__PURE__*/_react["default"].createElement("div", {
    className: "splash-actions"
  }, /*#__PURE__*/_react["default"].createElement("button", {
    className: "btn-outline",
    onClick: handleReturnAdmin
  }, "Return to Dashboard"), /*#__PURE__*/_react["default"].createElement("button", {
    className: "btn-outline",
    onClick: handleRecordNew
  }, "Start Over"))));
};

var _default = RedirectScreen;
exports["default"] = _default;
module.exports = exports.default;