Files
vibe-kanban/frontend/src/components/layout/navbar.tsx

71 lines
2.1 KiB
TypeScript
Raw Normal View History

2025-06-25 09:36:07 +01:00
import { Link, useLocation } from 'react-router-dom';
import { Button } from '@/components/ui/button';
import { FolderOpen, Settings, BookOpen, Server } from 'lucide-react';
2025-06-25 09:36:07 +01:00
import { Logo } from '@/components/logo';
2025-06-14 17:22:55 -04:00
export function Navbar() {
2025-06-17 20:36:25 -04:00
const location = useLocation();
2025-06-14 17:22:55 -04:00
return (
<div className="border-b">
2025-06-21 17:36:07 +01:00
<div className="w-full px-4 sm:px-6 lg:px-8">
2025-06-14 17:22:55 -04:00
<div className="flex items-center justify-between h-16">
<div className="flex items-center space-x-6">
2025-06-17 21:41:57 -04:00
<Logo />
2025-06-14 17:22:55 -04:00
<div className="flex items-center space-x-1">
<Button
asChild
2025-06-17 20:36:25 -04:00
variant={
2025-06-25 09:36:07 +01:00
location.pathname === '/projects' ? 'default' : 'ghost'
2025-06-17 20:36:25 -04:00
}
2025-06-14 17:22:55 -04:00
size="sm"
>
<Link to="/projects">
<FolderOpen className="mr-2 h-4 w-4" />
Projects
</Link>
</Button>
<Button
asChild
variant={
location.pathname === '/mcp-servers' ? 'default' : 'ghost'
}
size="sm"
>
<Link to="/mcp-servers">
<Server className="mr-2 h-4 w-4" />
MCP Servers
</Link>
</Button>
<Button
asChild
variant={
2025-06-25 09:36:07 +01:00
location.pathname === '/settings' ? 'default' : 'ghost'
}
size="sm"
>
<Link to="/settings">
<Settings className="mr-2 h-4 w-4" />
Settings
</Link>
</Button>
2025-06-14 17:22:55 -04:00
</div>
</div>
<div className="flex items-center">
<Button asChild variant="ghost" size="sm">
<a
href="https://vibekanban.com/"
target="_blank"
rel="noopener noreferrer"
>
<BookOpen className="mr-2 h-4 w-4" />
Docs
</a>
</Button>
</div>
2025-06-14 17:22:55 -04:00
</div>
</div>
</div>
2025-06-17 20:36:25 -04:00
);
2025-06-14 17:22:55 -04:00
}