"use client"; import { useRef } from "react"; export function Breadcrumbs({ history, endRef, }: { history: string[]; endRef: React.RefObject; }) { return (
{history.map((title, i) => ( {i > 0 && } {title} ))}
); } export function useBreadcrumbScroll() { const endRef = useRef(null); return endRef; }