2021-07-22 02:44:31 +00:00
|
|
|
import React from "react";
|
2021-07-21 00:22:40 +00:00
|
|
|
import "../App.css";
|
|
|
|
|
2021-07-22 03:20:37 +00:00
|
|
|
export default function GeneratedPassword(props) {
|
2021-07-21 00:22:40 +00:00
|
|
|
const handleOnCopyEvent = (e) => {
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<p onCopy={handleOnCopyEvent}>
|
|
|
|
Das Passwort für diese Situation lautet:{" "}
|
2021-07-22 03:20:37 +00:00
|
|
|
<span className="generated-password">{props.genPassword}</span>
|
2021-07-21 00:22:40 +00:00
|
|
|
</p>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|