import React from "react";
import { FaEnvelope } from "react-icons/fa";

const EmailButton = ({email, label}) => {
  return (
    <div className="flex items-center">
      <a
        title={label}
        className="px-2 flex items-center justify-center"
        href={"mailto:" + email}
      >
        <FaEnvelope />
      &nbsp;{label} &nbsp;
      </a>
    </div>
  );
};

export default EmailButton;
