"use client"; import { useState } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/public/lib/utils'; import { Button } from '@/components/ui/button'; import { Separator } from '@/components/ui/separator'; import { GradientText } from '@/components/ui/gradient-text'; import { Home, FolderOpen, Users, Type, Image, History, ChevronLeft, ChevronRight, Video, PanelsLeftBottom, ArrowLeftToLine, BookHeart, PanelRightClose } from 'lucide-react'; interface SidebarProps { collapsed: boolean; onToggle: (collapsed: boolean) => void; } const navigationItems = [ { title: 'Main', items: [ { name: 'My Portfolio', href: '/create', icon: BookHeart }, ], } ]; export function Sidebar({ collapsed, onToggle }: SidebarProps) { const pathname = usePathname(); return ( <> {/* Sidebar */}
{/* Toggle Button */}
{/* Navigation */}
{navigationItems.map((section) => (
{section.items.map((item) => { const isActive = pathname === item.href; return ( ); })}
))}
); }