45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import React from 'react'
|
|
import { Link } from 'react-router-dom'
|
|
import { WorkspaceSelector } from './WorkspaceSelector'
|
|
import { SidebarNav } from './SidebarNav'
|
|
import { RecentProjects } from './RecentProjects'
|
|
import { StorageUsage } from './StorageUsage'
|
|
import { UserInfo } from './UserInfo'
|
|
|
|
export const Sidebar: React.FC = () => {
|
|
return (
|
|
<aside className="w-[240px] shrink-0 bg-white border-r border-slate-200/80 flex flex-col justify-between h-screen sticky top-0 px-3.5 py-4 select-none">
|
|
<div className="space-y-5">
|
|
{/* Brand Logo */}
|
|
<Link to="/projects" className="flex items-center gap-2.5 px-1">
|
|
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-[#C95C3C] text-white shadow-sm">
|
|
<svg className="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2.2}>
|
|
<path
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
d="M4 8V6a2 2 0 012-2h2M4 16v2a2 2 0 002 2h2m8-16h2a2 2 0 012 2v2m-4 12h2a2 2 0 002-2v-2"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
<span className="text-xl font-bold tracking-tight text-slate-900">
|
|
danable
|
|
</span>
|
|
</Link>
|
|
|
|
{/* Workspace Selector */}
|
|
<WorkspaceSelector />
|
|
|
|
{/* Navigation Links */}
|
|
<SidebarNav />
|
|
|
|
{/* Recent Projects */}
|
|
<RecentProjects />
|
|
</div>
|
|
|
|
<div className="space-y-4 pt-4">
|
|
<StorageUsage />
|
|
<UserInfo />
|
|
</div>
|
|
</aside>
|
|
)
|
|
}
|