// components/ExpandableSection.jsx "use client"; import { useState } from 'react'; import { FiChevronDown, FiChevronRight } from 'react-icons/fi'; import './styles/ExpandableSection.css'; const ExpandableSection = ({ title, children }) => { const [isExpanded, setIsExpanded] = useState(false); return (
{isExpanded && (
{children}
)}
); }; export default ExpandableSection;