14 lines
413 B
JavaScript
14 lines
413 B
JavaScript
import SwipeableViews from 'react-swipeable-views';
|
|
import './FunctionTabs.css';
|
|
|
|
const FunctionTabs = (props) => {
|
|
return (
|
|
<div className="container-fluid">
|
|
<SwipeableViews onChangeIndex={(index) => props.setSlideIndex(index)} index={props.slideIndex} enableMouseEvents>
|
|
{props.children}
|
|
</SwipeableViews>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default FunctionTabs; |