import { __assign, __rest } from "tslib";
import React from 'react';
import { CSSTransition } from 'react-transition-group';
var Transition = function (props) {
    var _a = props.timeout, timeout = _a === void 0 ? 300 : _a, _b = props.unmountOnExit, unmountOnExit = _b === void 0 ? true : _b, _c = props.appear, appear = _c === void 0 ? true : _c, _d = props.prefix, prefix = _d === void 0 ? 'ty' : _d, animation = props.animation, classNames = props.classNames, children = props.children, wrapper = props.wrapper, otherProps = __rest(props, ["timeout", "unmountOnExit", "appear", "prefix", "animation", "classNames", "children", "wrapper"]);
    return (React.createElement(CSSTransition, __assign({}, otherProps, { timeout: timeout, appear: appear, unmountOnExit: unmountOnExit, classNames: classNames ? classNames : prefix + "-" + animation }), wrapper ? React.createElement("div", null, children) : children));
};
Transition.displayName = 'Transition';
export default Transition;
//# sourceMappingURL=index.js.map