import React from "react";
import { useTranslation } from "react-i18next";
import { Namespaces } from "../../i18n/i18n";
import "../../Sass/_homepage.scss";

const HomePage: React.FC = () => {
  const { t } = useTranslation(Namespaces.Common);

  const redirect = () => {
    window.location.href = "/organisations";
  };

  return (
    <div className="fluid-container">
      <h3>{t("Applications")}</h3>
      <div className="e-printWidget" onClick={redirect}>
        <div className="e-print">
          <div className="thumbnail alert"></div>
          <div className="label">{t("e-print")}</div>
        </div>
      </div>
    </div>
  );
};

export default HomePage;
