commit 70cb0b9de2bdbb6b564a7e6fb3a926a104e1e17c Author: Louis Knight-Webb <louis@bloop.ai> Date: Tue Jun 17 14:16:45 2025 -0400 Update API commit 36a5161b96b8f034daa91d08d648be77fbdcb30b Author: Louis Knight-Webb <louis@bloop.ai> Date: Tue Jun 17 14:14:33 2025 -0400 Further auth removal commit cba24ffd462a3de178658f26231011ed4d28a78b Author: Louis Knight-Webb <louis@bloop.ai> Date: Tue Jun 17 14:03:13 2025 -0400 Fully remove users commit cfb1aec9b984c3374e5cc0ffe182de2647caf85d Author: Louis Knight-Webb <louis@bloop.ai> Date: Tue Jun 17 11:51:20 2025 -0400 Start removing users
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import { Link, useLocation } from 'react-router-dom'
|
|
import { Button } from '@/components/ui/button'
|
|
import { ArrowLeft, FolderOpen, Users } from 'lucide-react'
|
|
|
|
export function Navbar() {
|
|
const location = useLocation()
|
|
const isHome = location.pathname === '/'
|
|
|
|
return (
|
|
<div className="border-b">
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div className="flex items-center justify-between h-16">
|
|
<div className="flex items-center space-x-6">
|
|
<h2 className="text-lg font-semibold">Bloop</h2>
|
|
<div className="flex items-center space-x-1">
|
|
<Button
|
|
asChild
|
|
variant={location.pathname === '/projects' ? 'default' : 'ghost'}
|
|
size="sm"
|
|
>
|
|
<Link to="/projects">
|
|
<FolderOpen className="mr-2 h-4 w-4" />
|
|
Projects
|
|
</Link>
|
|
</Button>
|
|
<Button
|
|
asChild
|
|
variant={location.pathname === '/users' ? 'default' : 'ghost'}
|
|
size="sm"
|
|
>
|
|
<Link to="/users">
|
|
<Users className="mr-2 h-4 w-4" />
|
|
Users
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center space-x-4">
|
|
{!isHome && (
|
|
<Button asChild variant="ghost">
|
|
<Link to="/">
|
|
<ArrowLeft className="mr-2 h-4 w-4" />
|
|
Home
|
|
</Link>
|
|
</Button>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|