%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/pages/contact/
Upload File :
Create Path :
Current File : //var/www/html/pages/contact/index.js

import Contact from "../../src/Components/Contact";
import CustomHead from "../../src/Components/Global/CustomHead";
function ContactPage({seo}) {

  return (
    <>
    <CustomHead data={seo} />
      <div>
        <Contact />
      </div>
    </>
  );
}

export async function getServerSideProps(ctx) {
  const seo = await fetch(
    `https://api.atvbuggy-dubrovnik.com/wp-json/wp/v2/pages?slug=contact`
  )
    .then((response) => response.json())
    .then((data) => data[0]);

  return {
    props: {
      seo: seo.yoast_head_json
    },
  };
}


export default ContactPage;

Zerion Mini Shell 1.0