{"size": 1568, "ext": "js", "max_stars_repo_path": "src/components/layout/index.js", "max_stars_repo_name": "DaniloArya/jetour-clone", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/layout/index.js", "max_issues_repo_name": "DaniloArya/jetour-clone", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/layout/index.js", "max_forks_repo_name": "DaniloArya/jetour-clone", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 37.3333333333, "max_line_length": 89, "alphanum_fraction": 0.59375}
import Head from 'next/head'
import Navbar from './Navbar'
import Footer from './Footer'

const Layout = ({children, layoutData: { generalData, footerData }}) => {
  return (
    <div>
      <Head >
        <title>{generalData?.data?.seo_title}</title>
        {generalData.data.seo_description && (
          <meta name="description" content={generalData?.data?.seo_description} />
        )}
        {generalData?.data?.seo_keywords && (
          <meta name="keywords" content={generalData?.data?.seo_keywords}></meta>
        )}
        <meta property="og:locale" content="es" />
        <meta property="og:type" content="website" />
        {generalData?.data?.seo_title && (
          <meta property="og:title" content={generalData?.data?.seo_title} />
        )}
        {generalData?.data?.seo_description && (
          <meta property="og:description" content={generalData?.data?.seo_description} />
        )}
        {generalData?.data?.seo_img?.url && (
          <meta property="og:image" content={generalData?.data?.seo_img?.url} />
        )}
        <meta property="og:url" content={`https://jetour.altosandes.com.pe/x70`} />
        <meta name="twitter:card" content="summary_large_image" />
        {generalData?.data?.seo_img?.alt && (
          <meta name="twitter:image:alt" content={generalData?.data?.seo_img?.alt} />
        )}
        <meta name="viewport" content="width=device-width, initial-scale=1" />
      </Head>
      <Navbar />
      <main>{children}</main>
      <Footer data={footerData}/>
    </div>
  );
}

export default Layout;
