This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/pages/components/Layout.js

34 lines
692 B
JavaScript

// @flow
import React from 'react';
import { Helmet } from 'react-helmet';
import Navigation from './Navigation';
import Analytics from './Analytics';
import globalStyles from '../../../shared/styles/globals';
type Props = {
children?: React$Element<*>,
};
export default function Layout({ children }: Props) {
globalStyles();
return (
<html lang="en">
<head>
<Helmet>
<title>Atlas</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</Helmet>
<Analytics />
{'{{HEAD}}'}
{'{{CSS}}'}
</head>
<body>
<Navigation />
{children}
</body>
</html>
);
}