import { useState } from 'react'; import HttpService from '../../scripts/net/HttpService'; import styles from './SaveMap.module.css'; const SaveMap = ({submitHandler}) => { const [name, setName] = useState(''); const handleSubmit = (event) => { event.preventDefault(); submitHandler(name); }; return ( <>
setName(e.target.value)} placeholder="Enter map name" required className={styles.saveMapInput} />
); } export default SaveMap;