"use client"; import { ChartNoAxesColumnIcon, ChevronLeft, ChevronRight, History, Home as HomeIcon, MessageCircleMoreIcon, Settings2, } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useState } from "react"; import Icon from "@/public/images/icon.png"; import { LogoutUserAction } from "../../actions/user"; type SidebarProps = { name: string; href: string; icon: React.ReactNode; }; // Array of navigation links for easier mapping const navLinks: Array<{ name: string; href: string; icon: React.ReactNode }> = [ { name: "Home", href: "/home", icon: , }, { name: "Start interview", href: "/home/interview", icon: , }, { name: "History", href: "/home/history", icon: , }, { name: "Analytics", href: "/home/analytics", icon: , }, { name: "Settings", href: "/home/settings", icon: , }, ]; export default function Sidebar() { const [expanded, setExpanded] = useState(true); const pathName = usePathname(); return ( ); } function SidebarLink({ data, pathName, expanded, }: { data: SidebarProps; pathName: string; expanded: boolean; }) { const { name, href, icon } = data; return ( {icon} {name} ); }