Created
January 12, 2018 16:37
-
-
Save wongni/c5aeab64c0c649bf76bcd3c287c4919e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import styles from './SpaceNavigator.scss' | |
import classNames from 'classnames/bind' | |
import LeftIcon from 'react-icons/lib/md/chevron-left' | |
import RightIcon from 'react-icons/lib/md/chevron-right' | |
const cx = classNames.bind(styles) | |
const SpaceNavigator = ({ onPrev, onNext }) => { | |
return ( | |
<div className={cx('space-navigator')}> | |
<div className={cx('left', 'end')}> | |
<div className={cx('circle')} onClick={onPrev}> | |
<LeftIcon /> | |
</div> | |
</div> | |
<div className={cx('right', 'end')}> | |
<div className={cx('circle')} onClick={onNext}> | |
<RightIcon /> | |
</div> | |
</div> | |
</div> | |
) | |
} | |
export default SpaceNavigator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment