import clsx from 'clsx/lite';
import { HTMLAttributes, useRef } from 'react';
import useMaskedScroll, { MaskedScrollExternalProps } from './useMaskedScroll';
export default function MaskedScroll({
direction = 'vertical',
fadeSize,
hideScrollbar,
className,
style,
children,
...props
}: HTMLAttributes &
MaskedScrollExternalProps & {
hideScrollbar?: boolean
}) {
const ref = useRef(null);
const { maskImage } = useMaskedScroll({ ref, direction, fadeSize });
return
{children}
;
}