import useOverlayScroller from '@/hooks/use-overlay-scroller'; import React from 'react'; import '../style/column-wrapper.less'; const ColumnWrapper: React.FC = ({ children, footer, maxHeight, paddingBottom = 50 }) => { const scroller = React.useRef(null); const { initialize } = useOverlayScroller(); React.useEffect(() => { if (scroller.current) { initialize(scroller.current); } }, []); return ( <> {footer ? (
{children}
{
{footer}
}
) : (
{children}
)} ); }; export default ColumnWrapper;