import React from 'react';
import Layout from './Layout';

function InstallingSparkLayout({ children, location }) {
  return (
    <Layout initialContext={'installing-spark'} location={location}>{children}</Layout>
  );
}

export default InstallingSparkLayout;

import React from 'react';
import PropTypes from 'prop-types';
import Layout from './Layout';

function InstallingSparkLayout({ children, location }) {
  return (
    <Layout initialContext="installing-spark" location={location}>
      {children}
    </Layout>
  );
}

InstallingSparkLayout.propTypes = {
  children: PropTypes.node,
  location: PropTypes.string,
};

export default InstallingSparkLayout;

add proptypes and fix eslint errors