import React, { memo } from 'react';
import Lottie from 'react-lottie';
import animationData from "./coord.json";
import "./style.css";
var defaultOptions = {
  loop: false,
  autoplay: true,
  animationData: animationData,
  rendererSettings: {
    preserveAspectRatio: 'xMidYMid slice'
  }
};

var EndScreen = function EndScreen(props) {
  setTimeout(function () {
    props.setShowRedirectScreen(true);
  }, '5000');
  return /*#__PURE__*/React.createElement("div", {
    className: 'finishExercise'
  }, /*#__PURE__*/React.createElement("div", {
    className: "header"
  }, /*#__PURE__*/React.createElement("h1", null, "Woah!"), /*#__PURE__*/React.createElement("h2", null, "Next level achieved"), /*#__PURE__*/React.createElement("h4", null, "You just won the Squat King 7 Day Record!")), /*#__PURE__*/React.createElement(Lottie, {
    options: defaultOptions,
    direction: 1,
    isStopped: false
  }));
};

export default memo(EndScreen);