import { useCallback } from "react";
export function useBreadcrumbs({ selectedNodePath, setSelectedNode, }) {
    const onBreadcrumbSelected = useCallback((breadcrumb) => {
        setSelectedNode(breadcrumb);
    }, [setSelectedNode]);
    return {
        breadcrumbs: selectedNodePath,
        onBreadcrumbSelected,
    };
}
//# sourceMappingURL=useBreadcrumbs.js.map