import Link from "next/link"; type Crumb = { name: string; href?: string; }; type Props = { title: string; english: string; crumbs?: Crumb[]; }; export function PageHero({ title, english, crumbs }: Props) { const trail = crumbs ?? [{ name: title }]; return (

خانه {trail.map((crumb) => ( / {crumb.href ? ( {crumb.name} ) : ( {crumb.name} )} ))}

{title}

{english}

); }