import React from "react";
import Menu from "../components/ui/Menu";
import { useLocation, useNavigate } from "react-router-dom";
import { motion } from "framer-motion";
import { useUser } from "../hooks/useUser";
// import screensTranslations from "../data/screensTranslations.json";
import lhoistEmployee from "../assets/img/profiles/lhoist-employee.svg";
import subcontractorEmployee from "../assets/img/profiles/subcontractor-employee.svg";
import driver from "../assets/img/profiles/driver.svg";
import civilian from "../assets/img/profiles/civilian.svg";
import Loading from "../components/animations/Loading.jsx";
import AnimatedPage from "../components/AnimatedPage";
export default function Profile() {
const navigate = useNavigate();
const location = useLocation();
const { profile, changeProfile } = useUser();
const { language, screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.profile) return ;
const currentScreenTranslations = screensTranslations.profile;
function handleChangeProfile(e) {
changeProfile(e.target.getAttribute("value"));
}
return (
{currentScreenTranslations.profile}
{currentScreenTranslations.iam}...
-
{currentScreenTranslations.profiles.civilian}
-
{currentScreenTranslations.profiles.driver}
-
{currentScreenTranslations.profiles.lhoist_employee}
-
{
currentScreenTranslations.profiles
.subcontractor_employee
}
);
}