import { createContext, useContext } from 'react';
import { usePageScrollContext } from '@wix/design-system';
export const ScrollableContentContext = createContext(null);
export function useScrollableContentContext() {
    const value = useContext(ScrollableContentContext);
    const pageScrollContext = usePageScrollContext();
    if (value != null) {
        return value;
    }
    return pageScrollContext;
}
//# sourceMappingURL=ScrollableContentContext.js.map