"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Library, BookOpen, Mic, ListMusic } from "lucide-react"; import { cn } from "@/utils/cn"; import { useIsMobile, useIsTablet } from "@/hooks/useMediaQuery"; const navigationItems = [ { name: "Library", href: "/library", icon: Library, matchPattern: "/library" }, { name: "Audiobooks", href: "/audiobooks", icon: BookOpen, matchPattern: "/audiobooks" }, { name: "Podcasts", href: "/podcasts", icon: Mic, matchPattern: "/podcasts" }, { name: "Playlists", href: "/playlists", icon: ListMusic, matchPattern: "/playlist" // Matches both /playlists and /playlist/[id] }, ]; export function BottomNavigation() { const pathname = usePathname(); const isMobile = useIsMobile(); const isTablet = useIsTablet(); const isMobileOrTablet = isMobile || isTablet; // Only render on mobile/tablet if (!isMobileOrTablet) return null; return ( ); }