import { FolderOpen } from 'lucide-react' import { TOOL } from '@/lib/editorMeta' import { useUiStore } from '../store/uiStore' import { Button } from '@/components/ui/button' /** Header for an editor's tools sidebar: the current-tool indicator on the left, * and a button that swaps the sidebar over to the document library. The mirror * of the "Tools" button the library view shows. */ export default function ToolsHeader() { const editorKind = useUiStore((s) => s.editorKind) const setSidebarView = useUiStore((s) => s.setSidebarView) const { label, icon: Icon } = TOOL[editorKind] return (