-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
26 lines (25 loc) · 760 Bytes
/
Copy pathstyles.css
File metadata and controls
26 lines (25 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const NAV = [
{ id: 'home', icon: '🏠', label: 'Home / Upload' },
{ id: 'code', icon: '📁', label: 'Code & Review' },
{ id: 'organize', icon: '🧹', label: 'Organizer' },
{ id: 'terminal', icon: '💻', label: 'GitBash Terminal' },
{ id: 'deploy', icon: '🚀', label: 'Deploy' },
{ id: 'settings', icon: '⚙️', label: 'Settings' }
];
export default function Sidebar({ tab, setTab, hasProject }) {
return (
<nav className="sidebar">
<div className="logo">⚡</div>
{NAV.map(n => (
<button
key={n.id}
className={`navbtn ${tab === n.id ? 'active' : ''}`}
title={n.label}
onClick={() => setTab(n.id)}
>
{n.icon}
</button>
))}
</nav>
);
}