'use strict';
const React = require('react');
const PropTypes = require('prop-types');
const Header = require('./header.jsx');
const Layout = ({ children, title }) => (
{title
? Porn Radar | {title}
: Porn Radar
}
{children}
);
Layout.propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.string,
};
Layout.defaultProps = {
title: null,
};
module.exports = Layout;