import React from 'react';
import Header from '../../../components/Header/Header';
import Footer from '../../../components/Footer/Footer';
import Faq from '../../../components/Faq/Faq'
import { faqListdata } from '../../../utils/apicalling';
import { notFound } from 'next/navigation';

const Page = async () => {
  const faqList: any = await faqListdata()
    if (!faqList) {
        notFound()
    }
    // console.log(typeof faqList?.data, 'faqList')
  return (
    <>
      <Header />
      <Faq faqList={faqList?.data} />
      <Footer />
    </>
  );
};

export default Page
