"use client"; import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"; import { type ComponentProps, useRef } from "react"; export function HorizontalDiv({ magnitude = 4, ...props }: ComponentProps & { magnitude?: number; }) { const ref = useRef(null); return ( { if (ref.current) ref.current.scrollTo({ left: ref.current.scrollLeft + ev.deltaY * magnitude, behavior: "smooth", }); }} /> ); }