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 Timer = function Timer(props) {
  return /*#__PURE__*/React.createElement("div", {
    className: 'timer inbar'
  }, /*#__PURE__*/React.createElement(Lottie, {
    className: "mtimer",
    options: defaultOptions,
    direction: 1,
    isStopped: false,
    isPaused: props.isPaused,
    eventListeners: [{
      eventName: 'complete',
      callback: props.onTimerCountDownFinish
    }]
  }));
};

export default memo(Timer);