ignore folder

This commit is contained in:
2026-04-21 06:30:48 +07:00
commit ca00b36f19
70 changed files with 3871 additions and 0 deletions

View File

@ -0,0 +1,31 @@
import Link from "next/link";
export type BreadcrumbItem = {
label: string;
href?: string;
};
export default function Breadcrumb({ items }: { items: BreadcrumbItem[] }) {
if (!items.length) return null;
return (
<nav aria-label="breadcrumb">
<ol className="breadcrumb">
{items.map((item, index) => (
<li
key={item.label + index}
className={`breadcrumb-item ${index === items.length - 1 ? "active" : ""}`}
>
{index === items.length - 1 || !item.href ? (
<span>{item.label}</span>
) : (
<Link href={item.href} className="text-decoration-none">
{item.label}
</Link>
)}
</li>
))}
</ol>
</nav>
);
}