var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from "react";
import { CSSTransition } from "react-transition-group";
import styled from "styled-components";
const duration = 150;
const ChildrenWrapper = styled.div `
  transition: transform ${duration}ms;

  &.transition-scale-appear {
    transform: scale(0.9);
  }

  &.transition-scale-appear-active {
    transform: scale(1);
  }

  &.transition-scale-exit {
    transform: scale(1);
  }

  &.transition-scale-exit-active {
    transform: scale(0.9);
  }
`;
const TransitionScale = (_a) => {
    var { children, in: inProp, timeout = duration } = _a, TransitionProps = __rest(_a, ["children", "in", "timeout"]);
    return (React.createElement(CSSTransition, Object.assign({}, TransitionProps, { in: inProp, timeout: timeout, classNames: "transition-scale" }),
        React.createElement(ChildrenWrapper, null, children)));
};
export default TransitionScale;
//# sourceMappingURL=TransitionScale.js.map