(null);
const isRTL = useDir().dir === "rtl";
const [disabled, setDisabled] = useState(!forward);
const nodeRef = useIntersectionObserver({
root,
rootMargin: "1px",
onUpdate: useCallback(([entry]) => {
setDisabled(entry.intersectionRatio === 1);
}, []),
});
return (
<>
{!forward && }
{
applyRef(instance, ref);
root.current = instance?.parentElement || null;
}}
className={tabListScrollButtonContainer({
forward,
vertical,
className,
})}
>
{forward && }
>
);
}