import React, { useState } from 'react' import FeatherIcon from 'feather-icons-react' import classnames from 'classnames' export const Collapse = (props) => { const { title, children, className } = props const [showContent, setShowContent] = useState(false) return ( <>
setShowContent(!showContent)} > {title &&
{title}
}
{showContent && children} ) }