mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
36 lines
850 B
JavaScript
36 lines
850 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 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>
|
|
<Navbar docsMetadatas={docsMetadatas} />
|
|
{children}
|
|
<Footer
|
|
docsMetadatas={docsMetadatas}
|
|
location={location}
|
|
pagesMetadatas={pagesMetadatas}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|