import React from "react"; import { Link, useLocation } from "react-router-dom"; import { Bookmark, User, PlusCircle, Settings, BookOpen, UserCircle } from "lucide-react"; const Header = ({ userId, onUserIdChange, onAddBookClick, onSettingsClick }) => { const location = useLocation(); const navLinks = [ { path: "/", label: "Gallery", icon: BookOpen }, { path: "/bookshelf", label: "My Bookshelf", icon: Bookmark }, { path: "/profile", label: "Profile", icon: UserCircle }, ]; return (

Paper Shelf

Discover books that resonate with your soul

{/* User Switcher */}
onUserIdChange(e.target.value)} placeholder="User ID" />
{/* Add Book Button */} {/* Navigation Links */} {navLinks.map(({ path, label, icon: Icon }) => ( {label} ))} {/* Settings */}
); }; export default Header;