mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57:03 +02:00
28 lines
665 B
JavaScript
28 lines
665 B
JavaScript
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>
|
|
);
|
|
}
|
|
}
|