"use client"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { supabase } from "@/lib/supabase"; import { Button } from "@/components/ui/button"; import { LayoutDashboard, Dumbbell, Users, FolderOpen, ImageIcon, LogOut, Flame, } from "lucide-react"; const navItems = [ { href: "/", label: "Dashboard", icon: LayoutDashboard }, { href: "/workouts", label: "Workouts", icon: Dumbbell }, { href: "/trainers", label: "Trainers", icon: Users }, { href: "/collections", label: "Collections", icon: FolderOpen }, { href: "/media", label: "Media", icon: ImageIcon }, ]; export function Sidebar() { const pathname = usePathname(); const router = useRouter(); const handleLogout = async () => { await supabase.auth.signOut(); router.push("/login"); }; return ( ); }