import React, { useRef } from "react"; import { BookOpen, Briefcase, Cpu, GitHub, Key, Plus } from "react-feather"; import IndexCount from "./IndexCount"; import LLMStatus from "./LLMStatus"; import KeysModal, { useKeysModal } from "../Modals/Keys"; import NewWorkspaceModal, { useNewWorkspaceModal, } from "../Modals/NewWorkspace"; import ActiveWorkspaces from "./ActiveWorkspaces"; import paths from "../../utils/paths"; export default function Sidebar() { const sidebarRef = useRef(null); const { showing: showingKeyModal, showModal: showKeyModal, hideModal: hideKeyModal, } = useKeysModal(); const { showing: showingNewWsModal, showModal: showNewWsModal, hideModal: hideNewWsModal, } = useNewWorkspaceModal(); // const handleWidthToggle = () => { // if (!sidebarRef.current) return false; // sidebarRef.current.classList.add('translate-x-[-100%]') // } return ( <>
{/* */}
{/* Header Information */}

AnythingLLM

{/* Primary Body */}

Managed cloud hosting

Enterpise Installation

{/* Footer */}
@MintplexLabs
{showingKeyModal && } {showingNewWsModal && } ); }