EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
AgentSidebar.jsx
Go to the documentation of this file.
1import React from "react";
2
3export function AgentSidebar({ selected, onSelect }) {
4 const tabs = [
5 { id: "system", label: "System", icon: "info" },
6 { id: "metrics", label: "Metrics", icon: "monitoring" },
7 { id: "rds", label: "Remote Desktop", icon: "desktop_windows" },
8 { id: "programs", label: "Programs", icon: "apps" },
9 { id: "task", label: "Tasks", icon: "task" },
10 { id: "terminal", label: "Terminal & Scripts", icon: "terminal" },
11 { id: "services", label: "Services", icon: "settings" },
12 { id: "event", label: "Event Viewer", icon: "description" },
13 { id: "log", label: "Logs", icon: "article" },
14 { id: "file", label: "File Manager", icon: "folder" },
15 ];
16
17 return (
18 <aside className="agent-sidebar">
19 {tabs.map((t) => (
20 <button
21 key={t.id}
22 className={`sidebar-btn ${selected === t.id ? "active" : ""}`}
23 onClick={() => onSelect(t.id)}
24 >
25 <span className="material-symbols-outlined">{t.icon}</span>
26 <span>{t.label}</span>
27 </button>
28 ))}
29 </aside>
30 );
31}