import React from "react";
import { UserBtnStyled } from "../PageTitle.style";

const UserBtn = ({ user, img }) => {
  return (
    <UserBtnStyled>
      <img src={img} alt={user ? user.name : null} width="24px" />
      Bem Vindo, {user ? user.name : null}
    </UserBtnStyled>
  );
};

export default UserBtn;

