import _defineProperty from "@babel/runtime/helpers/defineProperty";
import './index.css';
import classNames from 'classnames';
import * as animationExports from './animation-exports';
import { jsx as _jsx } from "react/jsx-runtime";
var getAnimation = function getAnimation(name) {
  var animation = animationExports[name];
  return {
    segment: animation.segment(),
    animationClassName: animation.animationClassName
  };
};
export var FcrIconAnimation = function FcrIconAnimation(props) {
  var type = props.type,
    style = props.style,
    className = props.className,
    paused = props.paused;
  var animation = getAnimation(type);
  var segment = animation.segment,
    animationClassName = animation.animationClassName;
  return /*#__PURE__*/_jsx("div", {
    className: classNames('fcr-icon-animation', animationClassName, className, _defineProperty({}, "".concat(animationClassName, "-paused"), paused)),
    style: style,
    children: segment
  });
};