import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import 'availity-uikit';

import Navigation from '../components/Navigation';
import meta from './meta';

import './index.scss';

const TemplateWrapper = props => (
  <div>
    <Helmet
      title="Availity UIKit"
      meta={meta}
    />
    <Navigation {...props} />
    {props.children()}
  </div>
);

TemplateWrapper.propTypes = {
  children: PropTypes.func,
};

export default TemplateWrapper;

import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import 'availity-uikit';

import Navigation from '../components/Navigation';
import meta from './meta';

import './index.scss';

const TemplateWrapper = props => (
  <div>
    <Helmet
      title="Availity UIKit"
      meta={meta}
    >
      <html lang="en" amp />
    </Helmet>
    <Navigation {...props} />
    {props.children()}
  </div>
);

TemplateWrapper.propTypes = {
  children: PropTypes.func,
};

export default TemplateWrapper;

add lang attribute to html doc for a11y compliance