import { DEFAULT_AVATAR } from '@stores/constants';

export const ActiveAccount = ({ user }: { user: any }) => {
  const userData = JSON.parse(user.metadata);

  return (
    <button className="relative h-11 w-11 rounded-lg">
      <img src={userData.picture || DEFAULT_AVATAR} alt="user's avatar" className="h-11 w-11 rounded-lg object-cover" />
    </button>
  );
};
