import React from 'react' import propTypes from 'prop-types' const styles = { wrapper: { position: 'absolute', width: '100%', zIndex: '100', bottom: '0', textAlign: 'center' }, btn: { width: '30px', height: '30px', cursor: 'pointer', userSelect: 'none', position: 'absolute', bottom: '0', font: '16px/30px sans-serif', color: 'rgba(255,255,255,0.8)' }, left: { left: '0' }, right: { right: '0' } } export default function Buttons (props) { const prevBtnStyle = Object.assign({}, styles.btn, styles.left) const nextBtnStyle = Object.assign({}, styles.btn, styles.right) const { index, total, loop, prevHandler, nextHandler } = props return (