const NoAuthWebsite = ({ login }) => {
const [userName, setUserName] = useState("");
return (
<form onSubmit={() => login(userName)}>
<input
placeholder="username"
required="required"
onChange={e => setUserName(e.target.value)}
value={userName}
/>
<button type="submit">
submit
</button>
</form>
);
};