import { useState } from 'react' import { FiFile, FiFolder, FiChevronDown, FiChevronRight, FiPlus, FiSettings, FiSearch, FiGithub, FiTerminal, FiDebug, FiExtensions, FiUser, FiBook } from 'react-icons/fi' export default function Sidebar() { const [expanded, setExpanded] = useState({ explorer: true, search: false, sourceControl: false, run: false, extensions: false }) const toggleSection = (section) => { setExpanded(prev => ({ ...prev, [section]: !prev[section] })) } return (
Explorer
toggleSection('explorer')}>
PROJECTS
{expanded.explorer ? : }
{expanded.explorer && (
src
package.json
README.md
)}
) }