import { FC, PropsWithChildren, useEffect, useRef } from 'react' import IndianaDragScoll from 'react-indiana-drag-scroll' import styles from './ScrollContainer.module.css' export const ScrollContainer: FC = ({ children }) => { const container = useRef(null) useEffect(() => { if (container.current) { container.current.oncontextmenu = e => e.preventDefault() } }, []) return (
{children}
) }