import { type Component, For } from "solid-js"; import { LayoutDashboard, ListTodo, Settings, Clock, ArrowUpCircle, PanelLeftClose } from "lucide-solid"; import { cn } from "@/lib/utils"; import { Button } from "./ui/button"; interface NavItem { icon: any; label: string; view: string; } const navItems: NavItem[] = [ { icon: ListTodo, label: "Focus", view: "critical" }, { icon: Clock, label: "Time", view: "urgency" }, { icon: ArrowUpCircle, label: "Priority", view: "priority" }, { icon: LayoutDashboard, label: "Matrix", view: "matrix" }, { icon: Settings, label: "Settings", view: "settings" }, ]; export const BottomNav: Component<{ currentView: string; setView: (v: string) => void }> = (props) => { return ( {(item) => ( props.setView(item.view)} class={cn( "flex flex-col items-center justify-center w-full h-full space-y-1 transition-colors", props.currentView === item.view ? "text-primary" : "text-muted-foreground" )} > {item.label} )} ); }; export const Sidebar: Component<{ currentView: string; setView: (v: string) => void; isLocked: boolean; setIsLocked: (v: boolean) => void; isPeeking: boolean; setIsPeeking: (v: boolean) => void; }> = (props) => { return ( ); };