mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 11:06:32 +09:00
增加法律信息板块
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import Link from "next/link";
|
||||
import { getLocaleMessages } from "@/lib/i18n";
|
||||
|
||||
export function PageBreadcrumb({ items }: { items: Array<{ label: string; href?: string }> }) {
|
||||
export function PageBreadcrumb({
|
||||
items,
|
||||
ariaLabel = "Page position",
|
||||
}: {
|
||||
items: Array<{ label: string; href?: string }>;
|
||||
ariaLabel?: string;
|
||||
}) {
|
||||
return (
|
||||
<nav className="page-breadcrumb" aria-label={getLocaleMessages("zh-CN").common.pagePosition}>
|
||||
<nav className="page-breadcrumb" aria-label={ariaLabel}>
|
||||
{items.map((item, index) => (
|
||||
<span className="page-breadcrumb-item" key={`${item.label}-${index}`}>
|
||||
{index > 0 && <span className="page-breadcrumb-separator" aria-hidden="true">›</span>}
|
||||
|
||||
Reference in New Issue
Block a user