appbaseio/reactivesearch

View on GitHub
packages/web/examples/ssr/components/Layout.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import Head from 'next/head';
import PropTypes from 'prop-types';

import './index.css';

const Layout = ({ children, title = '⚡ SSR with Reactivesearch' }) => (
    <div>
        <Head>
            <title>{title}</title>
        </Head>
        {children}
    </div>
);

Layout.propTypes = {
    children: PropTypes.any, // eslint-disable-line
    title: PropTypes.string,
};

export default Layout;