2021-07-22 02:44:31 +00:00
|
|
|
import React from "react";
|
2021-07-21 00:22:40 +00:00
|
|
|
import "../App.css";
|
|
|
|
|
|
|
|
export default function GeneratedPassword() {
|
|
|
|
|
2021-07-22 02:44:31 +00:00
|
|
|
const genPassword = "PASSWORT_MANUELL"
|
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:{" "}
|
|
|
|
<span className="generated-password">{genPassword}</span>
|
|
|
|
</p>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|