%PDF- %PDF-
Mini Shell

Mini Shell

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

import "../styles/Global.css";
import "../styles/Menu.css";
import "../styles/HeroLogo.css";
import "../styles/Header.css";
import "../styles/About.css";
import "../styles/ChooseTour.css";
import "../styles/Rent.css";
import "../styles/News.css";
import "../styles/NewsDetails.css";
import "../styles/TourDetails.css";
import "../styles/NewsFeed.css";
import "../styles/Contact.css";
import "../styles/TermsAndConditions.css";
import "../styles/PrivacyPolicy.css";
import CookieConsent from "react-cookie-consent";
import HeroLogo from "../src/Components/HeroLogo";
import { GlobalProvider } from "../src/Components/store/context/GlobalContext";
import { useEffect } from "react";
import { useRouter } from "next/router";

function MyApp({ Component, pageProps }) {
  const router = useRouter();
  useEffect(() => {
    const reloadCount = sessionStorage.getItem("reloadCount");
    if (reloadCount < 1) {
      sessionStorage.setItem("reloadCount", String(reloadCount + 1));
      router.reload();
    } else {
      sessionStorage.removeItem("reloadCount");
    }
  }, [router]);

  return (
    <>
      <GlobalProvider>
        <CookieConsent
          location="bottom"
          buttonText="Accept"
          buttonStyle={{
            color: "#4e503b",
            width: "9.5rem",
            height: "3.4rem",
            fontSize: "1.7rem",
            margin: "1.5rem",
          }}
          contentClasses="contentClass"
          cookieName="_atvSessionCookieUser"
          style={{ background: "#2B373B" }}
        >
          <span style={{ fontSize: "1.5rem" }}>
            This website uses cookies to enhance the user experience.
          </span>
        </CookieConsent>
        <HeroLogo />
        <Component {...pageProps} />
      </GlobalProvider>
    </>
  );
}

export default MyApp;

Zerion Mini Shell 1.0