valcucine.js 1.92 KB
"use client";
import AboutInfoBrands from "@/components/valcucines/AboutInfoBrands";
import Certifications from "@/components/valcucines/Certifications";
import CompanyOverview from "@/components/valcucines/CompanyOverview";
import InnerBannerBrands from "@/components/valcucines/InnerBannerBrands";
import Breadcrumb from "@/components/Common/Breadcrumb";
import { Contact } from "@/container/Home/Contact";
import { getBrandsBySlug } from "@/services/brandsApi";
import Head from "next/head";
import { getValcucineBySlug } from "@/services/valcucineApi";
 const bannerData = [
    {
    id: 8,
    title: "Valcucine",
    description: "<p>Our doors are more than entryways—they are crafted statements of design, blending timeless aesthetics with modern functionality. Each piece defines spaces with sophistication and enduring style.</p>",
    image: [
       {
        url: "/image/brands/valcucine.png",
        
    },
     {
        url: "/image/brands/valcucine.png",
        
    }
    ]
}
  ];
  
  
export default function valcucinesPage({ brandData, valcucineData }) {
  const breadcrumbData = [
    {
      href: "/brands",
      label: "Brands",
    },
    {
      href: `/brands/`,
      label: "valcucine",
    },
  ];

  return (
    <>
      <Head>
        <title>Akruti</title>
      </Head>

      <Breadcrumb breadcrumbData={breadcrumbData} />
      <InnerBannerBrands data={valcucineData?.banner} />
      <AboutInfoBrands infoData={valcucineData?.info}  />
      <CompanyOverview companyOverviewData={valcucineData?.companyOverview} />
      <Certifications certificationsData={valcucineData?.certifications} />
      <Contact />
    </>
  );
}


export async function getServerSideProps({ params }) {
  try {
    const valcucineData = await getValcucineBySlug();


    return {
      props: {
        valcucineData,

      },
    };
  } catch (error) {
    console.error("Product page SSR error:", error);
    return { notFound: true };
  }
}