AddFormContainer.jsx 512 B

12345678910111213141516171819202122
  1. // components
  2. import Grow from '@mui/material/Grow';
  3. // utils
  4. import PropTypes from 'prop-types';
  5. const AddFormContainer = ({children, open}) => {
  6. return (
  7. <div style={{maxHeight: open ? '100%' : '0px', transition: 'all ease-in-out 300ms'}}>
  8. <Grow in={open} timeout={400}>
  9. {children}
  10. </Grow>
  11. </div>
  12. )
  13. }
  14. AddFormContainer.propTypes = {
  15. children: PropTypes.node.isRequired,
  16. open: PropTypes.bool.isRequired
  17. }
  18. export default AddFormContainer