organism-react-scroll-nav
Version:
A React scroll spy library with flux
21 lines (20 loc) • 739 B
JavaScript
import _objectSpread from "reshow-runtime/es/helpers/objectSpread2";
import _objectWithoutProperties from "reshow-runtime/es/helpers/objectWithoutProperties";
var _excluded = ["children"];
// @ts-check
import ScrollSpy from "../organisms/ScrollSpy.mjs";
import ScrollReceiver from "../organisms/ScrollReceiver.mjs";
import * as React from "react";
import { jsx as _jsx } from "react/jsx-runtime";
var ScrollInfo = function ScrollInfo(_ref) {
var {
children
} = _ref,
others = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/_jsx(ScrollSpy, _objectSpread(_objectSpread({}, others), {}, {
children: /*#__PURE__*/_jsx(ScrollReceiver, {
children: children
})
}));
};
export default ScrollInfo;