import { Link, useLocation } from "react-router-dom"; import { cn } from "@/lib/utils"; import { useAuth } from "@/contexts/AuthContext"; import { Music2, Users, FileText, Settings, ChevronLeft, Headphones, } from "lucide-react"; interface EthosLayoutProps { children: React.ReactNode; } interface NavItem { name: string; href: string; icon: React.ElementType; memberOnly?: boolean; } const NAV_ITEMS: NavItem[] = [ { name: "Library", href: "/ethos/library", icon: Headphones }, { name: "Artists", href: "/ethos/artists", icon: Users }, { name: "Licensing", href: "/ethos/licensing", icon: FileText, memberOnly: true }, { name: "Settings", href: "/ethos/settings", icon: Settings, memberOnly: true }, ]; export default function EthosLayout({ children }: EthosLayoutProps) { const location = useLocation(); const { user } = useAuth(); const isActive = (href: string) => location.pathname.startsWith(href); return (