'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"; interface SidebarProps extends React.HTMLAttributes { playlists: Playlist[]; } export function Sidebar({ className, playlists }: 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"; return (

Discover

Library

); }