2016-08-15 23:06:12 +02:00
|
|
|
import React, { PropTypes } from 'react';
|
|
|
|
|
|
|
|
function Overlay(props) {
|
|
|
|
return (
|
|
|
|
<div className="overlay">
|
|
|
|
<div className="overlay-content">
|
|
|
|
{props.children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Overlay.propTypes = {
|
2017-02-22 20:29:35 +01:00
|
|
|
children: PropTypes.element
|
|
|
|
};
|
|
|
|
|
|
|
|
Overlay.defaultProps = {
|
|
|
|
children: null
|
2016-08-15 23:06:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Overlay;
|