import React from 'react'; import { Motion, spring } from 'react-motion'; import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( {({ opacity, height }) =>
{children}
}
); Collapsable.propTypes = { fullHeight: PropTypes.number.isRequired, isVisible: PropTypes.bool.isRequired, children: PropTypes.node.isRequired }; export default Collapsable;