import React, { useState } from "react"; import PropTypes from "prop-types"; export default (player, swal) => { function Login(props) { const [input, setInput] = useState(""); return (