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 Closing = function Closing(props) {
  return /*#__PURE__*/React.createElement("div", {
    className: "closing"
  }, /*#__PURE__*/React.createElement(Lottie, {
    className: "",
    options: defaultOptions,
    width: "100%",
    height: "100%",
    direction: 1,
    isStopped: false,
    isPaused: props.isPaused,
    eventListeners: [{
      eventName: 'complete',
      callback: props.onNextTransition
    }]
  }));
};

export default memo(Closing);