({ children, className, open }: Props)
| 7 | }; |
| 8 | |
| 9 | const AnimateHeight = ({ children, className, open }: Props) => { |
| 10 | return ( |
| 11 | <ReactAnimateHeight |
| 12 | duration={300} |
| 13 | height={open ? 'auto' : 0} |
| 14 | className={className} |
| 15 | > |
| 16 | {children} |
| 17 | </ReactAnimateHeight> |
| 18 | ); |
| 19 | }; |
| 20 | |
| 21 | export default AnimateHeight; |
nothing calls this directly
no outgoing calls
no test coverage detected