import { Button, Typography } from "@mui/material"; import { Box } from "@mui/system"; import LogoutIcon from "@mui/icons-material/Logout"; import React from "react"; import { useTranslation } from "react-i18next"; import avatarLogo from "../../assets/images/Avatar.png"; import PropTypes from "prop-types"; import { useDispatch, useSelector } from "react-redux"; import { logoutUser } from "../../store/actions/login/loginActions"; const UserProfile = ({ show, innerRef }) => { const { t } = useTranslation(); const dispatch = useDispatch(); // const theme = useTheme(); // const matches = useMediaQuery(theme.breakpoints.down("sm")); const { user } = useSelector((s) => s.user); const logout = () => { dispatch(logoutUser()); }; return (
{user.firstName + " " + user.lastName} HR Specialist {/*
*/}
); }; UserProfile.propTypes = { show: PropTypes.any, innerRef: PropTypes.any, }; export default UserProfile;