初始化 assetx 项目,首次提交

This commit is contained in:
2026-01-26 17:44:27 +08:00
commit f901590dce
492 changed files with 25203 additions and 0 deletions

39
components/Breadcrumb.tsx Normal file
View File

@@ -0,0 +1,39 @@
import Image from "next/image";
interface BreadcrumbItem {
label: string;
href?: string;
}
interface BreadcrumbProps {
items: BreadcrumbItem[];
}
export default function Breadcrumb({ items }: BreadcrumbProps) {
return (
<nav className="flex items-center gap-[3px] h-5">
{items.map((item, index) => (
<div key={index} className="flex items-center gap-[3px]">
<span
className={`text-sm font-medium leading-[150%] ${
index === items.length - 1
? "text-text-primary font-bold"
: "text-text-tertiary"
}`}
>
{item.label}
</span>
{index < items.length - 1 && (
<Image
src="/icon-chevron-right.svg"
alt=""
width={14}
height={14}
className="flex-shrink-0"
/>
)}
</div>
))}
</nav>
);
}