"use client"; import { Fragment } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { ChevronRight } from "lucide-react"; import { useTranslation } from "react-i18next"; import { breadcrumbFor, type Lang } from "@/lib/settings-nav"; // Top-left location trail, e.g. 设置 / 模型 / LLM. Earlier crumbs are links; // the current page is plain text. Replaces the old single "back" link so the // user always knows where they are inside Settings and can jump up a level. export default function SettingsBreadcrumb() { const pathname = usePathname() ?? ""; const { t, i18n } = useTranslation(); const zh = i18n.language?.toLowerCase().startsWith("zh"); const tr = (l: Lang) => (zh ? l.zh : l.en); const crumbs = breadcrumbFor(pathname); return ( ); }