import React from "react";
import "../App.css";

export default function GeneratedPassword(props) {
  const handleOnCopyEvent = (e) => {
    e.preventDefault();
    return false;
  };

  return (
    <>
      <p onCopy={handleOnCopyEvent}>
        Das Passwort für diese Situation lautet:{" "}
        {console.log("component genpw, genpassword", props.genPassword)}
        <span className="generated-password">{props.genPassword}</span>
      </p>
    </>
  );
}
