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 = ({ children, in: inProp, timeout = duration, ...TransitionProps }) => (React.createElement(CSSTransition, { ...TransitionProps, in: inProp, timeout: timeout, classNames: "transition-scale" },
    React.createElement(ChildrenWrapper, null, children)));
export default TransitionScale;
//# sourceMappingURL=TransitionScale.js.map