diff --git a/frontend/src/components/nav/Sidebar.tsx b/frontend/src/components/nav/Sidebar.tsx index 60fd1c62..83212ce8 100644 --- a/frontend/src/components/nav/Sidebar.tsx +++ b/frontend/src/components/nav/Sidebar.tsx @@ -4,6 +4,7 @@ import { FaRegFileLines, FaRobot, FaSearchengin, + FaTerminal, FaWpexplorer, FaXTwitter, } from "react-icons/fa6"; @@ -35,14 +36,30 @@ const SidebarItem = ({ icon, title, onClick }: SidebarItemProps) => ( ); +type NavItem = { + name: string; + path: string; + isExternal: boolean; + icon?: JSX.Element; +}; + const Sidebar = ({ show, onClose }: SidebarProps) => { const navigate = useNavigate(); const { isAuthenticated } = useAuthentication(); - const navItems = [ - { name: "Pro", path: "/pro", icon: }, - { name: "Mini", path: "/mini", icon: }, - ]; + let navItems: NavItem[] = []; + + if (isAuthenticated) { + navItems = [ + { + name: "Terminal", + path: "/terminal", + isExternal: false, + icon: , + }, + ...navItems, + ]; + } const technicalItems = [ { name: "Browse", path: "/browse", icon: }, @@ -89,15 +106,19 @@ const Sidebar = ({ show, onClose }: SidebarProps) => {