import Link from "next/link"; import React from "react"; const Breadcrumb = ({ items = [], }: { items: { text: string; link?: string }[]; }) => { return (
{items.map((item, index) => ( {item.link && index < items.length - 1 ? ( {item.text} ) : ( {item.text} )} {index < items.length - 1 && / } ))}
); }; export default Breadcrumb;