'use client'; import { useState, useEffect } from 'react'; import { cn } from "@/lib/utils"; import { usePathname } from 'next/navigation'; import { Button } from "../../components/ui/button"; import { ScrollArea } from "../../components/ui/scroll-area"; import Link from "next/link"; import { Playlist } from "@/lib/navidrome"; import { ChevronLeft, ChevronRight } from "lucide-react"; interface SidebarProps extends React.HTMLAttributes { playlists: Playlist[]; collapsed?: boolean; onToggle?: () => void; } export function Sidebar({ className, playlists, collapsed = false, onToggle }: SidebarProps) { const isRoot = usePathname() === "/"; const isBrowse = usePathname() === "/browse"; const isSearch = usePathname() === "/search"; const isAlbums = usePathname() === "/library/albums"; const isArtists = usePathname() === "/library/artists"; const isQueue = usePathname() === "/queue"; const isRadio = usePathname() === "/radio"; const isHistory = usePathname() === "/history"; const isSongs = usePathname() === "/library/songs"; const isPlaylists = usePathname() === "/library/playlists"; const isFavorites = usePathname() === "/favorites"; const isNew = usePathname() === "/new"; return (
{/* Collapse/Expand Button */}

Discover

Library

); }