"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { LucideIcon } from "lucide-react";
import { cn } from "@/lib/utils";
import { defaultLinks, additionalLinks } from "@/config/nav";
export interface SidebarLink {
title: string;
href: string;
icon: LucideIcon;
}
const SidebarItems = () => {
return (
<>
{additionalLinks.length > 0
? additionalLinks.map((l) => (
))
: null}
>
);
};
export default SidebarItems;
const SidebarLinkGroup = ({
links,
title,
border,
}: {
links: SidebarLink[];
title?: string;
border?: boolean;
}) => {
const fullPathname = usePathname();
const pathname = "/" + fullPathname.split("/")[1];
return (
{title ? (
{title}
) : null}
{links.map((link) => (
-
))}
);
};
const SidebarLink = ({
link,
active,
}: {
link: SidebarLink;
active: boolean;
}) => {
return (
);
};