text: import React from "react"
  import PropTypes from "prop-types"
  import "./layout.css"
  import NavBar from "../components/globals/navbar/NavBar"
  import Footer from "../components/globals/footer/Footer"
  import Copyright from '../components/globals/footer/Copyright'
  
  if (typeof window !== "undefined") {
    // eslint-disable-next-line global-require
    require("smooth-scroll")('a[href*="#"]')
  }
  
  const Layout = ({ children }) => {
    return (
      <React.Fragment>
        <NavBar />
        {children}
        <Footer />
        <Copyright />
      </React.Fragment>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  