16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const ContentOverlay = ({ shuffle }) => (
|
|
<div className='ContentOverlay'>
|
|
<button onClick={shuffle}>
|
|
<img src='/static/gfx/alps_random.svg' alt='shuffle'/>
|
|
</button>
|
|
</div>
|
|
);
|
|
|
|
ContentOverlay.propTypes = {
|
|
shuffle: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default ContentOverlay;
|