react-awesome-slider-fw
Version:
Fork from React Awesome Slider.
19 lines (16 loc) • 372 B
JavaScript
import React, { useContext } from 'react';
import { Context } from './context';
export default Component => {
return props => {
const [navigation, setNavigation] = useContext(Context);
return (
<Component
{...props}
fullpage={{
navigation,
navigate: setNavigation,
}}
/>
);
};
};