import * as ScrollArea from '@radix-ui/react-scroll-area'; import clsx from 'clsx'; import type { PropsWithChildren } from 'react'; import * as styles from './index.css'; import { useHasScrollTop } from './use-has-scroll-top'; export type ScrollableContainerProps = { showScrollTopBorder?: boolean; inTableView?: boolean; className?: string; viewPortClassName?: string; styles?: React.CSSProperties; scrollBarClassName?: string; }; export const ScrollableContainer = ({ children, showScrollTopBorder = false, inTableView = false, className, styles: _styles, viewPortClassName, scrollBarClassName, }: PropsWithChildren) => { const [setContainer, hasScrollTop] = useHasScrollTop(); return (
{children}
); };