Bachelorthesis_Code/frontend/src/components/GeneratedPassword.jsx

19 lines
366 B
React
Raw Normal View History

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>
2021-07-21 00:22:40 +00:00
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>
</>
);
}