import { NavLink } from "react-router-dom";
import {
LayoutDashboard,
Home,
Library,
ListVideo,
FolderOpen,
Image,
CalendarDays,
Users,
UserRoundPlus,
Settings,
Moon,
Sun,
Film,
} from "lucide-react";
import { useThemeStore } from "@/stores/useThemeStore";
import { Separator } from "@/components/ui/separator";
const mainNav = [
{ to: "/dashboard", icon: LayoutDashboard, label: "Dashboard" },
{ to: "/", icon: Home, label: "Home" },
];
const libraryNav = [
{ to: "/library", icon: Library, label: "Library" },
{ to: "/watchlist", icon: ListVideo, label: "Watchlist" },
{ to: "/collections", icon: FolderOpen, label: "Collections" },
{ to: "/media", icon: Image, label: "Media" },
];
const otherNav = [
{ to: "/calendar", icon: CalendarDays, label: "Calendar" },
{ to: "/people", icon: Users, label: "People" },
{ to: "/watch-buddies", icon: UserRoundPlus, label: "Buddies" },
];
function NavItem({
to,
icon: Icon,
label,
}: {
to: string;
icon: React.ComponentType<{ className?: string }>;
label: string;
}) {
return (
`relative flex flex-col items-center gap-1 rounded-md px-2 py-2.5 transition-colors ${
isActive
? "bg-sidebar-accent text-sidebar-primary"
: "text-sidebar-foreground/50 hover:bg-sidebar-accent/40 hover:text-sidebar-foreground"
}`
}
>
{label}
);
}
export function Sidebar() {
const { theme, toggleTheme } = useThemeStore();
return (
);
}
function MobileNavItem({
to,
icon: Icon,
label,
onClick,
}: {
to: string;
icon: React.ComponentType<{ className?: string }>;
label: string;
onClick?: () => void;
}) {
return (
`flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors ${
isActive
? "bg-sidebar-accent text-sidebar-primary font-medium"
: "text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"
}`
}
>
{label}
);
}
export function MobileSidebarContent({
onNavigate,
}: {
onNavigate: () => void;
}) {
const { theme, toggleTheme } = useThemeStore();
return (
{/* Logo */}
Showy
{/* Nav */}
{/* Bottom actions */}
);
}