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

var ReadySetGo = function ReadySetGo(props) {
  return /*#__PURE__*/React.createElement("div", {
    className: "readySetGo"
  }, /*#__PURE__*/React.createElement(Lottie, {
    className: "mtimer",
    options: defaultOptions,
    width: "100",
    height: "100",
    direction: 1,
    isStopped: false,
    isPaused: props.isPaused,
    eventListeners: [{
      eventName: 'complete',
      callback: function callback() {
        props.onSavePhysicalAssessmentsMetrics();
        props.onNextTransition();
      }
    }]
  }));
};

export default memo(ReadySetGo);