import Link from "next/link"; import type { LucideIcon } from "lucide-react"; import type { ReactNode } from "react"; import { AppCard } from "@/components/ui/app-card"; import { CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { cn } from "@/lib/utils"; type SidebarItem = { label: string; href: string; icon: LucideIcon; active?: boolean; }; type AppSidebarProps = { title: string; description: string; items: SidebarItem[]; footer?: ReactNode; }; export function AppSidebar({ title, description, items, footer, }: AppSidebarProps) { return ( {title}

{description}

{items.map((item) => { const Icon = item.icon; return ( {item.label} ); })} {footer ?
{footer}
: null}
); }