// IMPORT MODULES
import React from "react";

// IMPORT COMPONENTS
import Error from "../components/global/Error";

const ErrorPage = () => {
  const lang = localStorage.getItem("userLanguage")
    ? localStorage.getItem("userLanguage")
    : "TKM";
  return (
    <section className="success-page">
      <Error
        message={
          lang === "TKM"
            ? "Ýüzlenme ugradylmady"
            : lang === "РУС"
            ? "Не удалось отправить запрос"
            : lang === "ENG"
            ? "Failed to send request"
            : "Ýüzlenme ugradylmady"
        }
      />
    </section>
  );
};

export default ErrorPage;
