EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
ServicesSidebar.jsx
Go to the documentation of this file.
1import React from "react";
2
3export function ServicesSidebar({ selected, onSelect, isRootTenant }) {
4 const tabs = [
5 { id: "domains", label: "Domains", icon: "language" },
6 ...(isRootTenant ? [{ id: "domain-requests", label: "Domain Requests", icon: "approval" }] : []),
7 { id: "apps", label: "App Services", icon: "deployed_code" },
8 { id: "office365", label: "Office 365", icon: "cloud" },
9 { id: "hosting", label: "Web Hosting", icon: "dns" },
10 { id: "databases", label: "Databases", icon: "storage" },
11 { id: "email", label: "Email", icon: "mail", disabled: true },
12 { id: "servers", label: "Servers", icon: "computer" },
13 ];
14
15 return (
16 <aside className="services-sidebar">
17 {tabs.map((t) => (
18 <button
19 key={t.id}
20 className={`sidebar-btn ${selected === t.id ? "active" : ""}`}
21 onClick={() => !t.disabled && onSelect(t.id)}
22 disabled={t.disabled}
23 title={t.disabled ? "Coming soon" : t.label}
24 >
25 <span className="material-symbols-outlined">{t.icon}</span>
26 <span>{t.label}</span>
27 </button>
28 ))}
29 </aside>
30 );
31}