mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-23 21:17:54 +02:00
19 lines
555 B
JavaScript
19 lines
555 B
JavaScript
/* eslint-disable */
|
|
import React from 'react';
|
|
import Helmet from 'react-helmet';
|
|
import styles from './styles.css';
|
|
import Layout from '@theme/Layout'; // eslint-disable-line
|
|
|
|
export default class Docs extends React.Component {
|
|
render() {
|
|
const {route, siteConfig, metadata} = this.props;
|
|
return (
|
|
<Layout {...this.props}>
|
|
<Helmet>
|
|
<title>{(metadata && metadata.title) || siteConfig.title}</title>
|
|
</Helmet>
|
|
<div className={styles.mainContainer}>{this.props.children}</div>
|
|
</Layout>
|
|
);
|
|
}
|
|
}
|