TorbatYar/frontend/modules/experience/components/ExperienceBreadcrumbs.tsx
Mortezakoohjani 0eec9f729b feat(experience): deploy Experience frontend FE-11.0-11.5 portal
Commit completed Torbat Pages admin frontend module, BFF proxy, routes, and validation artifacts for official platform deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 21:01:50 +03:30

42 lines
1.3 KiB
TypeScript

"use client";
import Link from "next/link";
import { ChevronLeft } from "lucide-react";
import { EXPERIENCE_PORTAL } from "@/modules/experience/constants/portals";
export function ExperienceBreadcrumbs({ current }: { current: string }) {
return (
<nav className="flex items-center gap-1 text-sm text-[var(--muted)]" aria-label="مسیر">
<Link href={EXPERIENCE_PORTAL.basePath} className="hover:text-[var(--experience-accent)]">
تربت پیجز
</Link>
<ChevronLeft className="h-3 w-3" />
<span className="text-secondary">{current}</span>
</nav>
);
}
export function ExperienceDetailBreadcrumbs({
parent,
parentHref,
current,
}: {
parent: string;
parentHref: string;
current: string;
}) {
return (
<nav className="flex items-center gap-1 text-sm text-[var(--muted)]" aria-label="مسیر">
<Link href={EXPERIENCE_PORTAL.basePath} className="hover:text-[var(--experience-accent)]">
تربت پیجز
</Link>
<ChevronLeft className="h-3 w-3" />
<Link href={parentHref} className="hover:text-[var(--experience-accent)]">
{parent}
</Link>
<ChevronLeft className="h-3 w-3" />
<span className="text-secondary">{current}</span>
</nav>
);
}