import React from 'react';
import { useDispatch } from 'react-redux';
import { resetAll, shouldRedirectTo } from "../../store/performance/main";
import "./style.css";

var RedirectScreen = function RedirectScreen(props) {
  var dispatch = useDispatch();

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

  var handleRecordNew = function handleRecordNew() {
    props.setShowRedirectScreen(false);
    dispatch(resetAll());
  };

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

export default RedirectScreen;