nomadro/app/vip/topic/components/TopicBreadcrumb.tsx
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

31 lines
794 B
TypeScript

"use client";
import Link from "next/link";
import { getTopicConfig } from "../config";
type TopicBreadcrumbProps = {
topicId: string;
};
export function TopicBreadcrumb({ topicId }: TopicBreadcrumbProps) {
const config = getTopicConfig(topicId);
if (!config) return null;
return (
<nav
className="mb-6 flex flex-wrap items-center gap-2 text-sm text-[var(--muted-foreground)]"
aria-label="面包屑"
>
<Link href="/" className="transition hover:text-[var(--foreground)]">
首页
</Link>
<span>/</span>
<Link href="/#topics" className="transition hover:text-[var(--foreground)]">
模块
</Link>
<span>/</span>
<span className="text-[var(--foreground)] font-medium">{config.title}</span>
</nav>
);
}