2016-08-15 21:06:12 +00: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 19:29:35 +00:00
|
|
|
children: PropTypes.element
|
|
|
|
};
|
|
|
|
|
|
|
|
Overlay.defaultProps = {
|
|
|
|
children: null
|
2016-08-15 21:06:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Overlay;
|