forked from DebaucheryLibrarian/traxxx
39 lines
737 B
JavaScript
39 lines
737 B
JavaScript
'use strict';
|
|
|
|
const React = require('react');
|
|
const PropTypes = require('prop-types');
|
|
|
|
const Header = require('./header.jsx');
|
|
|
|
const Layout = ({ children, title }) => (
|
|
<html lang="en">
|
|
<head>
|
|
{title
|
|
? <title>Porn Radar | {title}</title>
|
|
: <title>Porn Radar</title>
|
|
}
|
|
|
|
<link href="/css/style.css" rel="stylesheet" />
|
|
</head>
|
|
|
|
<body>
|
|
<Header />
|
|
|
|
<div className="content">
|
|
{children}
|
|
</div>
|
|
</body>
|
|
</html>
|
|
);
|
|
|
|
Layout.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
title: PropTypes.string,
|
|
};
|
|
|
|
Layout.defaultProps = {
|
|
title: null,
|
|
};
|
|
|
|
module.exports = Layout;
|