docusaurus/v2/lib/theme/Layout/index.js
2018-10-25 17:03:19 -07:00

40 lines
993 B
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Helmet from 'react-helmet';
import Footer from '@theme/Footer'; // eslint-disable-line
import Navbar from '@theme/Navbar'; // eslint-disable-line
import './styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class Layout extends React.Component {
render() {
const {
children,
pagesMetadatas = [],
docsMetadatas = {},
location,
} = this.props;
return (
<div>
<Helmet>
<link rel="stylesheet" type="text/css" href="/css/main.css" />
</Helmet>
<Navbar docsMetadatas={docsMetadatas} />
{children}
<Footer
docsMetadatas={docsMetadatas}
location={location}
pagesMetadatas={pagesMetadatas}
/>
</div>
);
}
}