mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
40 lines
993 B
JavaScript
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>
|
|
);
|
|
}
|
|
}
|