"use client" import type React from "react" import { cn } from "@/lib/utils" import { Map, Database, FileText, Users, ChevronDown, ChevronUp, BrainCircuit } from "lucide-react" import Link from "next/link" import { usePathname } from "next/navigation" import { useState } from "react" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Button } from "@/components/ui/button" interface SidebarItemProps { icon: React.ReactNode label: string href: string active?: boolean badge?: React.ReactNode } const SidebarItem = ({ icon, label, href, active, badge }: SidebarItemProps) => { return (
{icon}
{label} {badge} ) } export default function Sidebar() { const pathname = usePathname() const [expanded, setExpanded] = useState(false) return (
B
BorBann
} label="Maps" href="/maps" active={pathname.startsWith("/maps")} /> } label="Data Pipeline" href="/data-pipeline" active={pathname.startsWith("/data-pipeline")} /> } label="Models" href="/models" active={pathname.startsWith("/models")} /> } label="Documentation" href="/documentation" active={pathname.startsWith("/documentation")} badge={NEW} />
GG

GG_WPX

garfield.wpx@gmail.com

{expanded && (
Manage Users Roles & Permissions
)}
) }